From e5821148c6b469a48f536b4cd18f06fd5be20e1f Mon Sep 17 00:00:00 2001 From: dec05eba Date: Tue, 28 Jul 2020 17:25:58 +0200 Subject: Fix build issues in release mode --- build.sh | 25 ------------------------- 1 file changed, 25 deletions(-) (limited to 'build.sh') diff --git a/build.sh b/build.sh index ce704cb..dcbbc29 100755 --- a/build.sh +++ b/build.sh @@ -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 -- cgit v1.2.3