1
0
mirror of https://github.com/alliedmodders/metamod-source.git synced 2025-02-26 19:54:14 +01:00

Fix clobbering of linkflags on mac build.

This commit is contained in:
Scott Ehlert 2017-09-16 11:16:13 -05:00
parent cbe97c285c
commit b1f9eee44b

View File

@ -84,12 +84,12 @@ def SetArchFlags(compiler, arch, platform):
compiler.cflags += ['-m32']
compiler.linkflags += ['-m32']
if platform == 'mac':
compiler.linkflags = ['-arch', 'i386']
compiler.linkflags += ['-arch', 'i386']
elif arch == 'x86_64':
compiler.cflags += ['-m64', '-fPIC']
compiler.linkflags += ['-m64']
if platform == 'mac':
compiler.linkflags = ['-arch', 'x86_64']
compiler.linkflags += ['-arch', 'x86_64']
elif compiler.like('msvc'):
if arch == 'x86':
compiler.linkflags += ['/MACHINE:X86']