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:
parent
cbe97c285c
commit
b1f9eee44b
@ -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']
|
||||
|
Loading…
x
Reference in New Issue
Block a user