From 4ded80f7145c08cd1f94d5f2af8dcd8d0452f507 Mon Sep 17 00:00:00 2001 From: talha Date: Sun, 23 Mar 2025 00:20:16 +0500 Subject: Updated Quad Drawing, Added compile and run script --- build.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'build.sh') 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" -- cgit v1.2.3