summaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/build.sh b/build.sh
index b947753..9b30f06 100755
--- a/build.sh
+++ b/build.sh
@@ -5,6 +5,8 @@ build_mode="debug" # temporary for now
build_dir="build"
mkdir -p $build_dir
+compile_opts="-std=c++11 -g -O0" # -fsanitize=address
+
include_path=include
include_opts="-I $include_path"
@@ -14,7 +16,7 @@ build_opts="$build_dir/main"
lib_path="libs/SDL2"
link_opts="-L $lib_path -lSDL2 -lpthread -lm -ldl"
-build_command="clang++ -std=c++11 -g -O0 -fsanitize=address $include_opts $files $link_opts -o $build_opts"
+build_command="clang++ $compile_opts $include_opts $files $link_opts -o $build_opts"
printf "Building Project...\n"
printf "$build_command\n\n"