From aaee8a18b28e46230b77c1c3438c8c2dcb8dbfaf Mon Sep 17 00:00:00 2001 From: Juan Jose Garcia-Ripoll Date: Wed, 30 Dec 2020 17:26:41 +0100 Subject: [PATCH] Added flags for building newcomp --- emacs-build.cmd | 5 +++++ emacs-build.sh | 17 +++++++++++++++-- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/emacs-build.cmd b/emacs-build.cmd index 1ef239a..43f21aa 100644 --- a/emacs-build.cmd +++ b/emacs-build.cmd @@ -1,5 +1,6 @@ @echo off if x%1 == x goto default +if %1 == --default-nativecomp goto nativecomp if %1 == --clean goto clean if %1 == --clean-all goto cleanall if %1==--help goto help @@ -19,6 +20,10 @@ goto:eof emacs-build.cmd --clone --deps --build --pack-emacs --pdf-tools --mu --isync --hunspell --pack-all goto:eof +:nativecomp +emacs-build.cmd --nativecomp --clone --deps --build --pack-emacs --pdf-tools --mu --isync --hunspell --pack-all +goto:eof + :help type %~dp0\scripts\help.txt goto:eof diff --git a/emacs-build.sh b/emacs-build.sh index adf0eaf..02e10d0 100644 --- a/emacs-build.sh +++ b/emacs-build.sh @@ -199,7 +199,6 @@ function action2_install () && cp "$emacs_install_dir/share/emacs/site-lisp/subdirs.el" \ "$emacs_install_dir/usr/share/emacs/site-lisp/subdirs.el" dir "${emacs_install_dir}/bin" - exit -1 fi } @@ -283,7 +282,9 @@ xml2 libxml2 gnutls gnutls zlib zlib EOF - + if test "$emacs_nativecomp" = yes; then + echo nativecomp libgccjit + fi } function delete_feature () { @@ -364,11 +365,13 @@ debug_dependency_list="false" emacs_compress_files=no emacs_build_version=0.3 emacs_slim_build=yes +emacs_nativecomp=no while test -n "$*"; do case $1 in --branch) shift; emacs_branch="$1";; --without-*) delete_feature `echo $1 | sed -e 's,--without-,,'`;; --with-*) add_feature `echo $1 | sed -e 's,--without-,,'`;; + --nativecomp) emacs_nativecomp=yes;; --not-slim) emacs_slim_build=no;; --slim) emacs_slim_build=yes;; --compress) emacs_compress_files=yes;; @@ -395,6 +398,15 @@ while test -n "$*"; do esac shift done +if test "$emacs_nativecomp" = "yes"; then + if test -n "$emacs_branch"; then + echo You cannot specify --nativecomp and a branch together. + exit -1 + fi + emacs_branch=feature/native-comp + all_features=`feature_list | cut -f 1 -d ' '` + add_feature nativecomp +fi if test "$emacs_slim_build" = "yes"; then delete_feature cairo delete_feature rsvg @@ -413,6 +425,7 @@ if test -z "$actions"; then actions="action0_clone action1_ensure_packages action2_build action3_package_deps action5_package_all" fi features=`for f in $features; do echo $f; done | sort | uniq` +echo $features # This is needed for pacman to return the right text export LANG=C