summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-11-14 16:18:45 -0500
committerJohn Wiegley <johnw@newartisans.com>2009-11-14 16:18:45 -0500
commit9b614cdd0d49ceec4c932a51877b896ba78adae3 (patch)
tree16a3a3ecc8dc761b9fb9ff07ae89193a4e649a40
parentff484fb27b2f16eee071ed731eb524fb6c80f0c1 (diff)
downloadledger-9b614cdd0d49ceec4c932a51877b896ba78adae3.tar.gz
ledger-9b614cdd0d49ceec4c932a51877b896ba78adae3.tar.bz2
ledger-9b614cdd0d49ceec4c932a51877b896ba78adae3.zip
Use -fast for building optimized Ledger on OS X
-rwxr-xr-xacprep12
1 files changed, 8 insertions, 4 deletions
diff --git a/acprep b/acprep
index 3c6c9ad3..897c3772 100755
--- a/acprep
+++ b/acprep
@@ -1047,10 +1047,14 @@ class PrepareBuild(CommandLineApp):
self.LDFLAGS.append('-g')
def setup_flavor_opt(self):
- self.CXXFLAGS.append('-O3')
- self.LDFLAGS.append('-O3')
- self.CXXFLAGS.append('-fomit-frame-pointer')
- self.LDFLAGS.append('-fomit-frame-pointer')
+ if self.darwin_gcc:
+ self.CXXFLAGS.append('-fast')
+ self.LDFLAGS.append('-fast')
+ else:
+ self.CXXFLAGS.append('-O3')
+ self.LDFLAGS.append('-O3')
+ self.CXXFLAGS.append('-fomit-frame-pointer')
+ self.LDFLAGS.append('-fomit-frame-pointer')
def setup_flavor_gcov(self):
self.CXXFLAGS.append('-g')