From 35d334bb7345e2ad1f940a921c5b53ea35e8edbf Mon Sep 17 00:00:00 2001 From: Paul Ferrand Date: Sat, 30 Nov 2019 17:00:31 +0100 Subject: [PATCH] Add a way to customize the configure scripts further --- scripts/asan_clang.sh | 2 +- scripts/debug_clang.sh | 2 +- scripts/debug_gcc.sh | 2 +- scripts/msan_clang.sh | 2 +- scripts/reldeb_gcc.sh | 2 +- scripts/release_clang.sh | 2 +- scripts/release_gcc.sh | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/scripts/asan_clang.sh b/scripts/asan_clang.sh index 8c905a4f..fe09ecbe 100755 --- a/scripts/asan_clang.sh +++ b/scripts/asan_clang.sh @@ -1,3 +1,3 @@ #!/bin/sh script_dir="$(dirname "$0")" -cmake -D CMAKE_C_COMPILER=clang -D CMAKE_CXX_COMPILER=clang++ -D CMAKE_CXX_FLAGS="-fsanitize=address" -D CMAKE_BUILD_TYPE=Release -D SFIZZ_TESTS=ON -D SFIZZ_BENCHMARKS=ON -S "$script_dir/.." -B . \ No newline at end of file +cmake $@ -D CMAKE_C_COMPILER=clang -D CMAKE_CXX_COMPILER=clang++ -D CMAKE_CXX_FLAGS="-fsanitize=address" -D CMAKE_BUILD_TYPE=Release -D SFIZZ_TESTS=ON -D SFIZZ_BENCHMARKS=ON -S "$script_dir/.." -B . diff --git a/scripts/debug_clang.sh b/scripts/debug_clang.sh index 50bb3600..1acf1b1f 100755 --- a/scripts/debug_clang.sh +++ b/scripts/debug_clang.sh @@ -1,3 +1,3 @@ #!/bin/sh script_dir="$(dirname "$0")" -cmake -D CMAKE_C_COMPILER=clang -D CMAKE_CXX_COMPILER=clang++ -D CMAKE_BUILD_TYPE=Debug -D SFIZZ_TESTS=ON -D SFIZZ_BENCHMARKS=ON -S "$script_dir/.." -B . \ No newline at end of file +cmake $@ -D CMAKE_C_COMPILER=clang -D CMAKE_CXX_COMPILER=clang++ -D CMAKE_BUILD_TYPE=Debug -D SFIZZ_TESTS=ON -D SFIZZ_BENCHMARKS=ON -S "$script_dir/.." -B . diff --git a/scripts/debug_gcc.sh b/scripts/debug_gcc.sh index 57ccb016..ce76ca38 100755 --- a/scripts/debug_gcc.sh +++ b/scripts/debug_gcc.sh @@ -1,3 +1,3 @@ #!/bin/sh script_dir="$(dirname "$0")" -cmake -D CMAKE_C_COMPILER=gcc -D CMAKE_CXX_COMPILER=g++ -D CMAKE_BUILD_TYPE=Debug -D SFIZZ_TESTS=ON -D SFIZZ_BENCHMARKS=ON -S "$script_dir/.." -B . \ No newline at end of file +cmake $@ -D CMAKE_C_COMPILER=gcc -D CMAKE_CXX_COMPILER=g++ -D CMAKE_BUILD_TYPE=Debug -D SFIZZ_TESTS=ON -D SFIZZ_BENCHMARKS=ON -S "$script_dir/.." -B . diff --git a/scripts/msan_clang.sh b/scripts/msan_clang.sh index 4dbe07f7..6e1f7e0b 100755 --- a/scripts/msan_clang.sh +++ b/scripts/msan_clang.sh @@ -1,4 +1,4 @@ #!/bin/sh script_dir="$(dirname "$0")" echo "DON'T USE: libc++ is not instrumented with msan..." -cmake -D CMAKE_C_COMPILER=clang -D CMAKE_CXX_COMPILER=clang++ -D CMAKE_CXX_FLAGS="-fsanitize=memory -fsanitize=undefined -fsanitize-memory-track-origins" -D CMAKE_BUILD_TYPE=Release -S "$script_dir/.." -B . \ No newline at end of file +cmake $@ -D CMAKE_C_COMPILER=clang -D CMAKE_CXX_COMPILER=clang++ -D CMAKE_CXX_FLAGS="-fsanitize=memory -fsanitize=undefined -fsanitize-memory-track-origins" -D CMAKE_BUILD_TYPE=Release -S "$script_dir/.." -B . diff --git a/scripts/reldeb_gcc.sh b/scripts/reldeb_gcc.sh index 6f2ef540..4cafd06b 100755 --- a/scripts/reldeb_gcc.sh +++ b/scripts/reldeb_gcc.sh @@ -1,3 +1,3 @@ #!/bin/sh script_dir="$(dirname "$0")" -cmake -D CMAKE_C_COMPILER=gcc -D CMAKE_CXX_COMPILER=g++ -D CMAKE_BUILD_TYPE=RelWithDebInfo -D SFIZZ_TESTS=ON -D SFIZZ_BENCHMARKS=ON -S "$script_dir/.." -B . \ No newline at end of file +cmake $@ -D CMAKE_C_COMPILER=gcc -D CMAKE_CXX_COMPILER=g++ -D CMAKE_BUILD_TYPE=RelWithDebInfo -D SFIZZ_TESTS=ON -D SFIZZ_BENCHMARKS=ON -S "$script_dir/.." -B . diff --git a/scripts/release_clang.sh b/scripts/release_clang.sh index e6a1fc10..6e4d1421 100755 --- a/scripts/release_clang.sh +++ b/scripts/release_clang.sh @@ -1,3 +1,3 @@ #!/bin/sh script_dir="$(dirname "$0")" -cmake -D CMAKE_C_COMPILER=clang -D CMAKE_CXX_COMPILER=clang++ -D CMAKE_BUILD_TYPE=Release -D SFIZZ_TESTS=ON -D SFIZZ_BENCHMARKS=ON -S "$script_dir/.." -B . \ No newline at end of file +cmake $@ -D CMAKE_C_COMPILER=clang -D CMAKE_CXX_COMPILER=clang++ -D CMAKE_BUILD_TYPE=Release -D SFIZZ_TESTS=ON -D SFIZZ_BENCHMARKS=ON -S "$script_dir/.." -B . diff --git a/scripts/release_gcc.sh b/scripts/release_gcc.sh index d8d01b78..ef062ebc 100755 --- a/scripts/release_gcc.sh +++ b/scripts/release_gcc.sh @@ -1,3 +1,3 @@ #!/bin/sh script_dir="$(dirname "$0")" -cmake -D CMAKE_C_COMPILER=gcc -D CMAKE_CXX_COMPILER=g++ -D CMAKE_BUILD_TYPE=Release -D SFIZZ_TESTS=ON -D SFIZZ_BENCHMARKS=ON -S "$script_dir/.." -B . +cmake "$@" -D CMAKE_C_COMPILER=gcc -D CMAKE_CXX_COMPILER=g++ -D CMAKE_BUILD_TYPE=Release -D SFIZZ_TESTS=ON -D SFIZZ_BENCHMARKS=ON -S "$script_dir/.." -B .