build: Add GCC build script

This commit is contained in:
doyle 2023-08-28 22:19:14 +10:00
parent 1f5070f456
commit 5211a755a3

9
build.sh Normal file
View File

@ -0,0 +1,9 @@
#!/bin/bash
script_dir=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
mkdir -p ${script_dir}/Build
pushd ${script_dir}/Build
gcc ${script_dir}/asan_example.cpp -g -fsanitize=address -o asan_example
popd