Skip to content

Commit

Permalink
update build scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
i80287 committed Jun 13, 2024
1 parent 5cf7fa5 commit 3d38e86
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions number_theory/run_clang_tests.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ cp ./u64-primes.txt ./build_tests/u64-primes.txt
cp ./u128-primes.txt ./build_tests/u128-primes.txt
cd ./build_tests || return 1

export CC="/usr/bin/clang"
export CXX="/usr/bin/clang++"
cmake -D CMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER="$(CC)" -DCMAKE_CXX_COMPILER="$(CXX)" -S .. -B . \
cmake -D CMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -S .. -B . \
&& make all --jobs "$(nproc)" \
&& make test
4 changes: 1 addition & 3 deletions number_theory/run_gcc_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ cp ./u64-primes.txt ./build_tests/u64-primes.txt
cp ./u128-primes.txt ./build_tests/u128-primes.txt
cd ./build_tests || return 1

export CC="/usr/bin/gcc"
export CXX="/usr/bin/g++"
cmake -D CMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER="$(CC)" -DCMAKE_CXX_COMPILER="$(CXX)" -S .. -B . \
cmake -D CMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ -S .. -B . \
&& make all --jobs "$(nproc)" \
&& make test

0 comments on commit 3d38e86

Please sign in to comment.