Tweak build script and README
This commit is contained in:
parent
99b8d3bcd0
commit
edc14bc1de
5
README
5
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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user