From 2593bab7b34375db55c717c2eb891784c7a0e9ac Mon Sep 17 00:00:00 2001 From: cancel Date: Wed, 12 Dec 2018 19:33:14 +0900 Subject: [PATCH] Fix tool script for gcc build in cygwin --- tool | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tool b/tool index 665730a..e3a85b5 100755 --- a/tool +++ b/tool @@ -187,7 +187,11 @@ build_target() { case "$1" in debug) build_subdir=debug - add cc_flags -DDEBUG -ggdb -fsanitize=address -fsanitize=undefined + add cc_flags -DDEBUG -ggdb + # cygwin gcc doesn't seem to have this stuff, just elide for now + if [[ $os != cygwin ]]; then + add cc_flags -fsanitize=address -fsanitize=undefined + fi if [[ $os = mac ]]; then # Our mac clang does not have -Og add cc_flags -O1