Ticket #13313: buildutils.patch

File buildutils.patch, 736 bytes (added by slabbe, 7 years ago)
  • buildutils.py

    old new  
    111111   
    112112    cpreargs = lpreargs = None
    113113    if sys.platform == 'darwin':
    114         # use appropriate arch for comiler
    115         if platform.architecture()[0]=='32bit':
    116             cpreargs = ['-arch','i386']
    117             lpreargs = ['-arch', 'i386', '-undefined', 'dynamic_lookup']
    118         else:
    119             # allow for missing UB arch, since it will still work:
    120             lpreargs = ['-undefined', 'dynamic_lookup']
     114        lpreargs = ['-undefined', 'dynamic_lookup']
    121115
    122116    objs = cc.compile([cfile],extra_preargs=cpreargs)
    123117    cc.link_executable(objs, efile, extra_preargs=lpreargs)