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,
|
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
|
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
|
tests. I use Clang but the code is ISO C11, it should compile just
|
||||||
should compile just fine with GCC or something instead.
|
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/build.sh # Compile library and tests
|
||||||
scripts/test.sh # Run tests
|
scripts/test.sh # Run tests
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
cd "$(git rev-parse --show-toplevel)"
|
cd "$(git rev-parse --show-toplevel)"
|
||||||
if [ ! -e build ]; then
|
if [ ! -e build ]; then
|
||||||
cmake -Bbuild -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_COMPILER=clang \
|
cmake -Bbuild -DCMAKE_BUILD_TYPE=Debug
|
||||||
-DSANITIZERS=ON
|
|
||||||
fi
|
fi
|
||||||
cmake --build build
|
cmake --build build
|
||||||
|
Loading…
x
Reference in New Issue
Block a user