-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathconfig-builds
More file actions
executable file
·46 lines (29 loc) · 1.02 KB
/
config-builds
File metadata and controls
executable file
·46 lines (29 loc) · 1.02 KB
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
#!/usr/bin/env bash
cd $(dirname $0)
CMAKE="cmake -G Ninja ."
export CC=gcc
export CXX=g++
$CMAKE -B build.tmp/gcc-debug \
-DCMAKE_INSTALL_PREFIX=dist/gcc-debug
$CMAKE -B build.tmp/gcc-release \
-DCMAKE_INSTALL_PREFIX=dist/gcc-release \
-DCMAKE_BUILD_TYPE=Release
export CC=clang
export CXX=clang++
$CMAKE -B build.tmp/clang-debug \
-DCMAKE_INSTALL_PREFIX=dist/clang-debug-libc++
$CMAKE -B build.tmp/clang-release \
-DCMAKE_INSTALL_PREFIX=dist/clang-release-libc++ \
-DCMAKE_BUILD_TYPE=Release
export CXXFLAGS=-stdlib=libc++
$CMAKE -B build.tmp/clang-debug-libc++ \
-DCMAKE_INSTALL_PREFIX=dist/clang-debug-libc++
$CMAKE -B build.tmp/clang-release-libc++ \
-DCMAKE_INSTALL_PREFIX=dist/clang-release-libc++ \
-DCMAKE_BUILD_TYPE=Release
export CXXFLAGS="${CXXFLAGS} -fsanitize=address"
$CMAKE -B build.tmp/clang-debug-asan \
-DCMAKE_INSTALL_PREFIX=dist/clang-debug-asan
$CMAKE -B build.tmp/clang-release-asan \
-DCMAKE_INSTALL_PREFIX=dist/clang-release-asan \
-DCMAKE_BUILD_TYPE=Release