diff options
author | talha <sarcxd@gmail.com> | 2025-03-23 00:20:16 +0500 |
---|---|---|
committer | talha <sarcxd@gmail.com> | 2025-03-23 00:20:16 +0500 |
commit | 4ded80f7145c08cd1f94d5f2af8dcd8d0452f507 (patch) | |
tree | 1ee0be90f169095fc9e2730ea3eced013be9e36a /build.sh | |
parent | f8dd0bb51027d428d0cab7951489647656db0290 (diff) |
Updated Quad Drawing, Added compile and run script
Diffstat (limited to 'build.sh')
-rwxr-xr-x | build.sh | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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" |