From 6ceda8320fcd81376c3b8a8bc81e48b9e87f1926 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Wed, 2 Jun 2010 18:41:57 -0400 Subject: Added acprep option --universal, now off by default --- acprep | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'acprep') diff --git a/acprep b/acprep index 5959e99a..e6da1869 100755 --- a/acprep +++ b/acprep @@ -454,6 +454,9 @@ class PrepareBuild(CommandLineApp): op.add_option('', '--no-python', action='store_true', dest='no_python', default=False, help='Do not enable Python support by default') + op.add_option('', '--universal', action='store_true', + dest='universal', default=False, + help='Attempt to build universal binaries') op.add_option('', '--output', metavar='DIR', action="callback", callback=self.option_output, help='Build in the specified directory') @@ -1165,10 +1168,11 @@ class PrepareBuild(CommandLineApp): self.CXXFLAGS.append(i) self.CFLAGS.append(i) self.LDFLAGS.append(i) - for i in ['-arch', 'i386', '-arch', 'x86_64']: - self.CXXFLAGS.append(i) - self.CFLAGS.append(i) - self.LDFLAGS.append(i) + if self.options.universal: + for i in ['-arch', 'i386', '-arch', 'x86_64']: + self.CXXFLAGS.append(i) + self.CFLAGS.append(i) + self.LDFLAGS.append(i) else: for i in ['-O3', '-fomit-frame-pointer']: self.CXXFLAGS.append(i) -- cgit v1.2.3