Skip to content

Commit

Permalink
Darwin: Add -arch x86_64 to UnicCCompiler ld_args
Browse files Browse the repository at this point in the history
  • Loading branch information
mingwandroid committed Sep 2, 2020
1 parent fba33ff commit f26c714
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Lib/distutils/unixccompiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ def link(self, target_desc, objects,

if sys.platform == 'darwin':
linker = _osx_support.compiler_fixup(linker, ld_args)
ld_args = ['-arch', 'x86_64'] + ld_args

self.spawn(linker + ld_args)
except DistutilsExecError as msg:
Expand Down

0 comments on commit f26c714

Please sign in to comment.