Ticket #13313: buildutils.patch
File buildutils.patch, 736 bytes (added by , 7 years ago) |
---|
-
buildutils.py
old new 111 111 112 112 cpreargs = lpreargs = None 113 113 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'] 121 115 122 116 objs = cc.compile([cfile],extra_preargs=cpreargs) 123 117 cc.link_executable(objs, efile, extra_preargs=lpreargs)