From edc14bc1dea7a5fdb31784a557d011fdc483998e Mon Sep 17 00:00:00 2001 From: Camden Dixie O'Brien Date: Sun, 27 Oct 2024 02:39:24 +0000 Subject: [PATCH] Tweak build script and README --- README | 5 +++-- scripts/build.sh | 3 +-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README b/README index afd0899..782d924 100644 --- a/README +++ b/README @@ -23,8 +23,9 @@ syntax; the expression syntax I intend to support follows. The build uses CMake. There are two scripts, build.sh and test.sh, which will (much to everybody's shock) build the project and run the -tests. The build script specifies Clang but the code is ISO C11 so it -should compile just fine with GCC or something instead. +tests. I use Clang but the code is ISO C11, it should compile just +fine with GCC. You might need to faff with CMakeLists.txt to get it +to work with another compiler due to command-line flag nonsense. scripts/build.sh # Compile library and tests scripts/test.sh # Run tests diff --git a/scripts/build.sh b/scripts/build.sh index f640a4a..dd8e60c 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -1,7 +1,6 @@ #!/bin/sh cd "$(git rev-parse --show-toplevel)" if [ ! -e build ]; then - cmake -Bbuild -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_COMPILER=clang \ - -DSANITIZERS=ON + cmake -Bbuild -DCMAKE_BUILD_TYPE=Debug fi cmake --build build