add_option_enable_disable(ctx, 'double', default = False,
help_str = 'compile in double precision mode',
help_disable_str = 'compile in single precision mode (default)')
+ add_option_enable_disable(ctx, 'fat', default = False,
+ help_str = 'build fat binaries (darwin only)',
+ help_disable_str = 'do not build fat binaries (default)')
ctx.add_option('--with-target-platform', type='string',
help='set target platform for cross-compilation', dest='target_platform')
ctx.define('HAVE_WIN_HACKS', 1)
ctx.env['cshlib_PATTERN'] = 'lib%s.dll'
- if target_platform == 'darwin':
+ if target_platform == 'darwin' and ctx.options.enable_fat:
ctx.env.CFLAGS += ['-arch', 'i386', '-arch', 'x86_64']
ctx.env.LINKFLAGS += ['-arch', 'i386', '-arch', 'x86_64']