commit 86333ba1352743672dcb9685fa381b86702180db parent 27b52097db569877e55360bb9b2698e7999b4c21 Author: Ashymad <szymon.mikulicz@posteo.net> Date: Mon, 16 Mar 2026 23:12:24 +0100 CFLAGS and portable sed Diffstat:
| M | bootstrap.sh | | | 2 | +- |
| M | src/main.janet | | | 7 | ++++++- |
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/bootstrap.sh b/bootstrap.sh @@ -29,7 +29,7 @@ pushd jpm echo "[4/9] Building jpm" PREFIX="" DESTDIR="$ROOTDIR" JANET_PATH="$ROOTDIR/lib/janet" "$ROOTDIR/bin/janet" ./bootstrap.janet cp -r $ROOTDIR/$ROOTDIR/* $ROOTDIR/ -sed -i '1s@^@#!/usr/bin/env janet\n@' "$ROOTDIR/bin/jpm" +sed -i '' '1s@^@#!/usr/bin/env janet\n@' "$ROOTDIR/bin/jpm" popd popd diff --git a/src/main.janet b/src/main.janet @@ -149,7 +149,12 @@ (checkrun :build/make :cmake "-B" builddir "-S" "." (stropt "-DCMAKE_INSTALL_PREFIX" prefix))) :build/make - (checkrun :install/make :make "-C" builddir (string/format "-j%d" (libc/get_nprocs))) + (checkrun :install/make + :make + "-C" builddir + ;(if (nil? (os/getenv "CC")) [] [(stropt "CC" (os/getenv "CC"))]) + ;(if (nil? (os/getenv "CXX")) [] [(stropt "CXX" (os/getenv "CXX"))]) + (string/format "-j%d" (libc/get_nprocs))) :build/go (checkrun :install/go :go "build" "-v")