Tweak build script and README

This commit is contained in:
Camden Dixie O'Brien 2024-10-27 02:39:24 +00:00
parent 99b8d3bcd0
commit edc14bc1de
2 changed files with 4 additions and 4 deletions

5
README
View File

@ -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

View File

@ -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