diff options
author | dec05eba <dec05eba@protonmail.com> | 2020-07-28 17:25:58 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-07-28 17:25:58 +0200 |
commit | e5821148c6b469a48f536b4cd18f06fd5be20e1f (patch) | |
tree | 2ea1fe6b3285a4b8450821c070a6c31d67b2a7a7 /build.sh | |
parent | 45ba8188d181c4b9316366f89fc955956c26e502 (diff) |
Fix build issues in release mode
Diffstat (limited to 'build.sh')
-rwxr-xr-x | build.sh | 25 |
1 files changed, 0 insertions, 25 deletions
@@ -39,27 +39,6 @@ if [ -n "$PEDANTIC" ]; then CFLAGS="$CFLAGS -DAMAL_PEDANTIC -pedantic " fi -build_compile_commands() { - set +x - compile_commands=$( - first=0 - echo "[" - for source_file in $@; do - if [ $first = 1 ]; then - echo " ," - fi - first=1 - o_file="${source_file}.o" - echo " {" - echo " \"file\": \"$source_file\"," - echo " \"directory\": \"$this_script_dir\"," - echo " \"command\": \"$CC -o $o_file $CFLAGS $LIBS -c $source_file\"" - echo " }" - done - echo "]") - echo "$compile_commands" > "compile_commands.json" -} - build_test() { CFLAGS="$CFLAGS -g -O0 -DDEBUG" @@ -75,8 +54,6 @@ build_test() { set -x time $CC $source_files_test $CFLAGS $LIBS -o test "./libamalgam.so" $(pkg-config --cflags --libs glfw3 glew) set +x - - build_compile_commands $source_files $source_files_test } build_release() { @@ -92,8 +69,6 @@ build_release() { scan-build $CC $BUILD_ARGS fi set +x - - build_compile_commands $source_files } case "$1" in |