We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
build.sh
1 parent 44c0204 commit 7230660Copy full SHA for 7230660
build.sh
@@ -3,6 +3,21 @@
3
#set -x
4
set -e
5
6
+codegen_channel=debug
7
+
8
+while [[ $# -gt 0 ]]; do
9
+ case $1 in
10
+ --release)
11
+ codegen_channel=release
12
+ shift
13
+ ;;
14
+ *)
15
+ echo "Unknown option $1"
16
+ exit 1
17
18
+ esac
19
+done
20
21
if [ -f ./gcc_path ]; then
22
export GCC_PATH=$(cat gcc_path)
23
else
@@ -21,7 +36,7 @@ if [[ "$1" == "--features" ]]; then
36
shift
37
fi
38
24
-if [[ "$1" == "--release" ]]; then
39
+if [[ "$codegen_channel" == "release" ]]; then
25
40
export CHANNEL='release'
26
41
CARGO_INCREMENTAL=1 cargo rustc --release $features
27
42
@@ -37,3 +52,4 @@ mkdir -p target/out/gccjit
52
53
echo "[BUILD] sysroot"
54
time ./build_sysroot/build_sysroot.sh $CHANNEL
55
0 commit comments