commit | 266811f350d76ff5d0ec0224f7da44b0d2b42664 | [log] [tgz] |
---|---|---|
author | Brian Silverman <brians> | Sat May 03 22:48:04 2014 -0700 |
committer | Brian Silverman <brians> | Sat May 03 22:48:04 2014 -0700 |
tree | efac693d23795dcd9f726d965d00dc1c1fe1a730 | |
parent | d3fac73db7c77301dae6dcb01677165fd8505b24 [diff] [blame] |
build tests with -O1 like the docs recommend (they run twice as fast)
diff --git a/aos/build/aos.gypi b/aos/build/aos.gypi index b0b9ec7..517ea6c 100644 --- a/aos/build/aos.gypi +++ b/aos/build/aos.gypi
@@ -166,9 +166,15 @@ 'defines': [ 'AOS_DEBUG=1', ], - 'cflags': [ - '-O0', - ], + 'conditions': [['SANITIZER=="none"', { + 'cflags': [ + '-O0', + ], + }, { + 'cflags': [ + '-O1', + ], + }]], }, { 'defines': [ 'AOS_DEBUG=0',