aboutsummaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh25
1 files changed, 0 insertions, 25 deletions
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