-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbootstrap.sh
More file actions
executable file
·36 lines (28 loc) · 827 Bytes
/
bootstrap.sh
File metadata and controls
executable file
·36 lines (28 loc) · 827 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/usr/bin/env bash
set -euo pipefail
set -x
# if ! [ -d /opt/GCC ]
# then
# git submodule update --init --depth=1 -- submodules/gcc
# submodules/build-gcc.sh --install
# fi
# export PATH="/opt/GCC/bin:$PATH"
# export LC_ALL="C"
ROOT="$(git rev-parse --show-toplevel)"
DIR="$ROOT/build/bootstrap_dir"
mkdir -p "$DIR"
if ! [ -f "$DIR/generate_build_sources" ]
then
g++ -Wl,-rpath=/opt/GCC/lib64 \
"$ROOT/ivl/build_system/generate_build_sources.cpp" \
-O3 -std=c++26 -o "$DIR/generate_build_sources"
fi
if ! [ -f "$DIR/builder" ]
then
"$DIR/generate_build_sources"
g++ -Wl,-rpath=/opt/GCC/lib64 \
@"$ROOT/build/include_dirs/args.rsp" -freflection \
"$ROOT/ivl/build_system/builder.cpp" \
-O3 -std=c++26 -o "$DIR/builder" -lstdc++exp
fi
exec "$DIR/builder" "$@"