Browse Source

Change -O4 to -O3 -flto on OSX for new clang (should work with older one too)

Adam Ierymenko 11 years ago
parent
commit
74c2e644a9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      make-mac.mk

+ 1 - 1
make-mac.mk

@@ -23,7 +23,7 @@ endif
 #DEFS+=-DZT_TRACE -DZT_LOG_STDOUT 
 #DEFS+=-DZT_TRACE -DZT_LOG_STDOUT 
 
 
 # Uncomment for a release optimized universal binary build
 # Uncomment for a release optimized universal binary build
-CFLAGS=-arch i386 -arch x86_64 -Wall -O4 -fstack-protector -pthread -mmacosx-version-min=10.6 -DNDEBUG -Wno-unused-private-field $(INCLUDES) $(DEFS)
+CFLAGS=-arch i386 -arch x86_64 -Wall -O3 -flto -fvectorize -fstack-protector -pthread -mmacosx-version-min=10.6 -DNDEBUG -Wno-unused-private-field $(INCLUDES) $(DEFS)
 STRIP=strip
 STRIP=strip
 
 
 # Uncomment for a debug build
 # Uncomment for a debug build