From 5211a755a32b98170c773e0d982bbd0eab2f13a1 Mon Sep 17 00:00:00 2001 From: doyle Date: Mon, 28 Aug 2023 22:19:14 +1000 Subject: [PATCH] build: Add GCC build script --- build.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 build.sh diff --git a/build.sh b/build.sh new file mode 100644 index 0000000..3a75ee5 --- /dev/null +++ b/build.sh @@ -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 + +