Skip to content

Commit 842a5fb

Browse files
committed
Add --release-sysroot flag to build.sh
When this flag is present, `build.sh` will pass `--release` to `build_sysroot.sh`.
1 parent 7230660 commit 842a5fb

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

build.sh

+10-1
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,18 @@
44
set -e
55

66
codegen_channel=debug
7+
sysroot_channel=debug
78

89
while [[ $# -gt 0 ]]; do
910
case $1 in
1011
--release)
1112
codegen_channel=release
1213
shift
1314
;;
15+
--release-sysroot)
16+
sysroot_channel=release
17+
shift
18+
;;
1419
*)
1520
echo "Unknown option $1"
1621
exit 1
@@ -51,5 +56,9 @@ rm -r target/out || true
5156
mkdir -p target/out/gccjit
5257

5358
echo "[BUILD] sysroot"
54-
time ./build_sysroot/build_sysroot.sh $CHANNEL
59+
if [[ "$sysroot_channel" == "release" ]]; then
60+
time ./build_sysroot/build_sysroot.sh --release
61+
else
62+
time ./build_sysroot/build_sysroot.sh
63+
fi
5564

0 commit comments

Comments
 (0)