-
Notifications
You must be signed in to change notification settings - Fork 19
/
build-all.sh
31 lines (24 loc) · 864 Bytes
/
build-all.sh
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
export SRC_DIR=/mnt/z/Projets/C++/Ashes
rm -r ./build-clang
rm -r ./build-gcc
rm -r ./vcpkg-clang
rm -r ./vcpkg-gcc
mkdir build-clang
mkdir build-gcc
mkdir vcpkg-clang
mkdir vcpkg-gcc
cd ./build-clang
CC=clang-15 CXX=clang++-15 cmake $SRC_DIR --preset dev-ninja-debug -DPROJECTS_OUTPUT_DIR=$PWD
ninja -j30
cd ../build-gcc
CC=gcc-12 CXX=g++-12 cmake $SRC_DIR --preset dev-ninja-release -DPROJECTS_OUTPUT_DIR=$PWD
ninja -j30
cd ../vcpkg-clang
CC=clang-15 CXX=clang++-15 cmake $SRC_DIR --preset dev-vcpkg-ninja-release -DPROJECTS_OUTPUT_DIR=$PWD -DCMAKE_TOOLCHAIN_FILE=$SRC_DIR/external/vcpkg/scripts/buildsystems/vcpkg.cmake
cmake .
ninja -j30
cd ../vcpkg-gcc
CC=gcc-12 CXX=g++-12 cmake $SRC_DIR --preset dev-vcpkg-ninja-debug -DPROJECTS_OUTPUT_DIR=$PWD -DCMAKE_TOOLCHAIN_FILE=$SRC_DIR/external/vcpkg/scripts/buildsystems/vcpkg.cmake
cmake .
ninja -j30
cd ..