shithub: orca

Download patch

ref: 2593bab7b34375db55c717c2eb891784c7a0e9ac
parent: 2e556815eb1d50d2a5d22984f728f14bb7ee9f99
author: cancel <cancel@cancel.fm>
date: Wed Dec 12 14:33:14 EST 2018

Fix tool script for gcc build in cygwin

--- a/tool
+++ b/tool
@@ -187,7 +187,11 @@
   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