summaryrefslogtreecommitdiff
path: root/acprep
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@fpcomplete.com>2013-01-30 17:00:22 -0600
committerJohn Wiegley <johnw@fpcomplete.com>2013-01-30 17:00:22 -0600
commitccca974dadc9c57805aeb47565eecd4e25c9d368 (patch)
treed2d88950840a7cad7ec3c644e5464d2029827d5e /acprep
parent2b245f823b0cab9aad74a5c0b59dc6de66dee21a (diff)
downloadfork-ledger-ccca974dadc9c57805aeb47565eecd4e25c9d368.tar.gz
fork-ledger-ccca974dadc9c57805aeb47565eecd4e25c9d368.tar.bz2
fork-ledger-ccca974dadc9c57805aeb47565eecd4e25c9d368.zip
Use -O3 with Clang instead of -O4
Diffstat (limited to 'acprep')
-rwxr-xr-xacprep6
1 files changed, 4 insertions, 2 deletions
diff --git a/acprep b/acprep
index b83d1f19..36481f4a 100755
--- a/acprep
+++ b/acprep
@@ -666,8 +666,10 @@ class PrepareBuild(CommandLineApp):
self.configure_args.append('-DCMAKE_CXX_COMPILER:PATH=/usr/local/bin/clang++')
if self.current_flavor == 'opt':
- self.configure_args.append('-DCMAKE_CXX_FLAGS_RELEASE:STRING=-O4')
- self.configure_args.append('-DCMAKE_CXX_LINK_FLAGS_RELEASE:STRING=-O4')
+ self.configure_args.append('-DCMAKE_CXX_FLAGS_RELEASE:STRING=-O3')
+ self.configure_args.append('-DCMAKE_EXE_LINKER_FLAGS:STRING=-O3')
+ self.configure_args.append('-DCMAKE_SHARED_LINKER_FLAGS:STRING=-O3')
+ self.configure_args.append('-DCMAKE_MODULE_LINKER_FLAGS:STRING=-O3')
#else:
# self.CXXFLAGS.append('-g -O1 -faddress-sanitizer')
# self.LDFLAGS.append('-g -O1 -faddress-sanitizer')