aboutsummaryrefslogtreecommitdiff
AgeCommit message (Expand)Author
2021-03-02enhance `reduce_vars` & `side_effects` (#4712)Alex Lam S.L
2021-03-02fix corner case with `class` (#4713)Alex Lam S.L
2021-03-02enhance `side_effects` & `unused` (#4711)Alex Lam S.L
2021-03-01v3.13.0Alex Lam S.L
2021-03-01fix corner cases with `import` (#4709)...Alex Lam S.L
2021-03-01support limited `ufuzz` testing for `import` (#4707)Alex Lam S.L
2021-02-28fix corner case `reduce_vars` (#4706)...Alex Lam S.L
2021-02-27improve `export` compatibility mode (#4704)Alex Lam S.L
2021-02-27improve `export` compatibility mode (#4703)Alex Lam S.L
2021-02-27fix corner cases with `export` (#4699)...Alex Lam S.L
2021-02-27fix corner case with `arguments` (#4697)...Alex Lam S.L
2021-02-27support limited `ufuzz` testing for `export` (#4693)...Alex Lam S.L
2021-02-27fix corner cases with block-scoped functions (#4695)Alex Lam S.L
2021-02-26use strict-mode-safe placeholder (#4694)Alex Lam S.L
2021-02-26fix corner cases with `exports` (#4691)Alex Lam S.L
2021-02-25fix corner cases in `sequences` (#4690)...Alex Lam S.L
2021-02-25fix corner cases with arrow functions (#4688)...Alex Lam S.L
2021-02-25fix corner case in `collapse_vars` (#4686)...Alex Lam S.L
2021-02-25fix corner case in `loops` (#4684)...Alex Lam S.L
2021-02-25fix corner case in `unused` (#4682)...Alex Lam S.L
2021-02-24fix corner case in `comparisons` (#4680)...Alex Lam S.L
2021-02-24support nullish coalescing operator (#4678)Alex Lam S.L
2021-02-23support `class` literals (#4658)Alex Lam S.L
2021-02-22fix corner case in `templates` (#4677)...Alex Lam S.L
2021-02-22enhance `side_effects` (#4675)Alex Lam S.L
2021-02-22improve CLI usability (#4670)...Alex Lam S.L
2021-02-22fix corner cases in `reduce_vars` (#4674)Alex Lam S.L
2021-02-21fix corner cases with `export default` (#4673)Alex Lam S.L
2021-02-21fix corner case with `import` (#4672)Alex Lam S.L
2021-02-21parse dynamic `import` correctly (#4671)Alex Lam S.L
2021-02-20fix corner case in `conditionals` & `side_effects` (#4669)...Alex Lam S.L
2021-02-19fix corner cases in arrow functions & `rests` (#4667)...Alex Lam S.L
2021-02-19fix corner case in `reduce_vars` (#4665)...Alex Lam S.L
2021-02-18fix corner case in `reduce_vars` (#4663)...Alex Lam S.L
2021-02-18fix corner case in `inline` (#4660)...Alex Lam S.L
2021-02-16workaround bug in ECMAScript specification (#4656)...Alex Lam S.L
2021-02-16fix corner case in `reduce_vars` (#4654)...Alex Lam S.L
2021-02-15fix syntax error in tests (#4652)Alex Lam S.L
2021-02-15introduce `hoist_exports` (#4651)Alex Lam S.L
2021-02-15support `export` statements (#4650)Alex Lam S.L
2021-02-14support `import` statements (#4646)Alex Lam S.L
2021-02-14improve fix for #4325 (#4649)Alex Lam S.L
2021-02-13v3.12.8Alex Lam S.L
2021-02-13avoid false positive in `--reduce-test` (#4648)Alex Lam S.L
2021-02-12fix corner case in `evaluate` (#4645)...Alex Lam S.L
2021-02-11enhance `join_vars` (#4643)Alex Lam S.L
2021-02-10fix corner cases with asynchronous generators (#4642)...Alex Lam S.L
2021-02-10enhance `collapse_vars` (#4637)Alex Lam S.L
2021-02-10fix corner cases in `inline` (#4640)...Alex Lam S.L
2021-02-10enhance `side_effects` (#4638)Alex Lam S.L
AGS="$CXXFLAGS" CXXFLAGS="-std=c++11 $CXXFLAGS" AC_COMPILE_IFELSE([ AC_LANG_SOURCE([ #include <functional> std::function<int(int)> return_plus_lambda (int x) { auto result = [[&]](int y) { return x + y; }; return result; } ])], [ac_cv_guix_cxx11_support=yes], [ac_cv_guix_cxx11_support=no]) CXXFLAGS="$save_CXXFLAGS" ]) ]) dnl GUIX_ASSERT_CXX11 dnl dnl Error out if the C++ compiler cannot compile C++11 code. AC_DEFUN([GUIX_ASSERT_CXX11], [ GUIX_CHECK_CXX11 if test "x$ac_cv_guix_cxx11_support" != "xyes"; then AC_MSG_ERROR([C++ compiler '$CXX' does not support the C++11 standard]) fi ]) dnl GUIX_LIBGCRYPT_LIBDIR VAR dnl dnl Attempt to determine libgcrypt's LIBDIR; store the result in VAR. AC_DEFUN([GUIX_LIBGCRYPT_LIBDIR], [ AC_PATH_PROG([LIBGCRYPT_CONFIG], [libgcrypt-config]) AC_CACHE_CHECK([libgcrypt's library directory], [guix_cv_libgcrypt_libdir], [if test "x$LIBGCRYPT_CONFIG" != "x"; then guix_cv_libgcrypt_libdir=`$LIBGCRYPT_CONFIG --libs | grep -e -L | sed -e "s/.*-L\([[^ ]]\+\)[[[:blank:]]]\+-lgcrypt.*/\1/g"` else guix_cv_libgcrypt_libdir="" fi]) $1="$guix_cv_libgcrypt_libdir" ]) dnl GUIX_CURRENT_LOCALSTATEDIR dnl dnl Determine the localstatedir of an existing Guix installation and set dnl 'guix_cv_current_localstatedir' accordingly. Set it to "none" if no dnl existing installation was found. AC_DEFUN([GUIX_CURRENT_LOCALSTATEDIR], [ AC_PATH_PROG([GUILE], [guile]) AC_CACHE_CHECK([the current installation's localstatedir], [guix_cv_current_localstatedir], [dnl Call 'dirname' because (guix config) appends "/guix" to LOCALSTATEDIR. guix_cv_current_localstatedir="`"$GUILE" \ -c '(use-modules (guix config)) (when (string=? %store-directory "'$storedir'") (display (dirname %state-directory)))' \ 2>/dev/null`" if test "x$guix_cv_current_localstatedir" = "x"; then guix_cv_current_localstatedir=none fi])]) dnl GUIX_CHECK_LOCALSTATEDIR dnl dnl Check that the LOCALSTATEDIR value is consistent with that of the existing dnl Guix installation, if any. Error out or warn if they do not match. AC_DEFUN([GUIX_CHECK_LOCALSTATEDIR], [ AC_REQUIRE([GUIX_CURRENT_LOCALSTATEDIR]) if test "x$guix_cv_current_localstatedir" != "xnone"; then if test "$guix_cv_current_localstatedir" != "$guix_localstatedir"; then case "$localstatedir" in NONE|\${prefix}*) # User kept the default value---i.e., did not pass '--localstatedir'. AC_MSG_ERROR([chosen localstatedir '$guix_localstatedir' does not match \ that of the existing installation '$guix_cv_current_localstatedir' Installing may corrupt $storedir! Use './configure --localstatedir=$guix_cv_current_localstatedir'.]) ;; *) # User passed an explicit '--localstatedir'. Assume they know what # they're doing. AC_MSG_WARN([chosen localstatedir '$guix_localstatedir' does not match \ that of the existing installation '$guix_cv_current_localstatedir']) AC_MSG_WARN([installing may corrupt $storedir!]) ;; esac fi fi]) dnl GUIX_CHANNEL_METADATA dnl dnl Provide the channel metadata for this build. This allows 'guix describe' dnl to return meaningful data, as it would for a 'guix pull'-provided 'guix'. dnl The default URL and introduction are taken from (guix channels). AC_DEFUN([GUIX_CHANNEL_METADATA], [ AC_ARG_WITH([channel-url], [AS_HELP_STRING([--with-channel-url=URL], [assert that this is built from the Git repository at URL])], [guix_channel_url="\"$withval\""], [guix_channel_url="\"https://git.savannah.gnu.org/git/guix.git\""]) AC_ARG_WITH([channel-commit], [AS_HELP_STRING([--with-channel-commit=COMMIT], [assert that this is built from COMMIT])], [guix_channel_commit="\"$withval\""], [guix_channel_commit="#f"]) AC_ARG_WITH([channel-introduction], [AS_HELP_STRING([--with-channel-introduction=COMMIT:FINGERPRINT], [specify COMMIT and FINGERPRINT as the introduction of this channel])], [guix_channel_introduction="'(\"`echo $withval | cut -f1 -d:`\" \"`echo $withval | cut -f2 -d:`\")"], [guix_channel_introduction="'(\"9edb3f66fd807b096b48283debdcddccfea34bad\" . \"BBB0 2DDF 2CEA F6A8 0D1D E643 A2A0 6DF2 A33A 54FA\")"]) GUIX_CHANNEL_URL="$guix_channel_url" GUIX_CHANNEL_COMMIT="$guix_channel_commit" GUIX_CHANNEL_INTRODUCTION="$guix_channel_introduction" AC_SUBST([GUIX_CHANNEL_URL]) AC_SUBST([GUIX_CHANNEL_COMMIT]) AC_SUBST([GUIX_CHANNEL_INTRODUCTION]) ])