-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config-builds
executable file
·55 lines (35 loc) · 1.63 KB
/
config-builds
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#!/usr/bin/env bash
cd $(dirname $0)
function linux() { which lsb_release; }
CMAKE="cmake -G Ninja ."
linux && $CMAKE -B build.tmp/gcc-debug \
-DCMAKE_INSTALL_PREFIX=dist/gcc-debug
linux && $CMAKE -B build.tmp/gcc-release \
-DCMAKE_INSTALL_PREFIX=dist/gcc-release \
-DCMAKE_BUILD_TYPE=Release
linux && CC=clang CXX=clang++ $CMAKE -B build.tmp/clang-debug \
-DCMAKE_INSTALL_PREFIX=dist/clang-debug
linux && CC=clang CXX=clang++ $CMAKE -B build.tmp/clang-release \
-DCMAKE_INSTALL_PREFIX=dist/clang-release \
-DCMAKE_BUILD_TYPE=Release
export CXXFLAGS=-stdlib=libc++
export LD_FLAGS=-stdlib=libc++
CC=clang CXX=clang++ $CMAKE -B build.tmp/clang-debug-libc++ \
-DCMAKE_INSTALL_PREFIX=dist/clang-debug-libc++
CC=clang CXX=clang++ $CMAKE -B build.tmp/clang-release-libc++ \
-DCMAKE_INSTALL_PREFIX=dist/clang-release-libc++ \
-DCMAKE_BUILD_TYPE=Release
# We can't use `undefined` sanitizer with coroutines due to clang bug :-(
export CXXFLAGS="${CXXFLAGS} -fsanitize=address"
CC=clang CXX=clang++ $CMAKE -B build.tmp/clang-debug-asan \
-DCMAKE_INSTALL_PREFIX=dist/clang-debug-asan
CC=clang CXX=clang++ $CMAKE -B build.tmp/clang-release-asan \
-DCMAKE_INSTALL_PREFIX=dist/clang-release-asan \
-DCMAKE_BUILD_TYPE=Release
linux && CC=clang CXX=clang++ $CMAKE -B build.tmp/clang-debug--io_uring-asan \
-DFELSPAR_ENABLE_IO_URING=NO \
-DCMAKE_INSTALL_PREFIX=dist/clang-debug--io_uring-asan
linux && CC=clang CXX=clang++ $CMAKE -B build.tmp/clang-release--io_uring-asan \
-DFELSPAR_ENABLE_IO_URING=NO \
-DCMAKE_INSTALL_PREFIX=dist/clang-release--io_uring-asan \
-DCMAKE_BUILD_TYPE=Release