mirror of
https://github.com/alliedmodders/metamod-source.git
synced 2025-01-20 09:52:24 +01:00
Merge.
This commit is contained in:
commit
e322718546
@ -97,7 +97,6 @@ class MMS:
|
|||||||
self.compiler.AddToListVar('CDEFINES', 'HAVE_STDINT_H')
|
self.compiler.AddToListVar('CDEFINES', 'HAVE_STDINT_H')
|
||||||
if self.vendor == 'gcc':
|
if self.vendor == 'gcc':
|
||||||
self.compiler.AddToListVar('CFLAGS', '-mfpmath=sse')
|
self.compiler.AddToListVar('CFLAGS', '-mfpmath=sse')
|
||||||
self.compiler.AddToListVar('POSTLINKFLAGS', '-static-libgcc')
|
|
||||||
elif isinstance(cxx, Cpp.MSVC):
|
elif isinstance(cxx, Cpp.MSVC):
|
||||||
self.vendor = 'msvc'
|
self.vendor = 'msvc'
|
||||||
if AMBuild.options.debug == '1':
|
if AMBuild.options.debug == '1':
|
||||||
@ -153,6 +152,8 @@ class MMS:
|
|||||||
#Platform-specifics
|
#Platform-specifics
|
||||||
if AMBuild.target['platform'] == 'linux':
|
if AMBuild.target['platform'] == 'linux':
|
||||||
self.compiler.AddToListVar('CDEFINES', '_LINUX')
|
self.compiler.AddToListVar('CDEFINES', '_LINUX')
|
||||||
|
if self.vendor == 'gcc':
|
||||||
|
self.compiler.AddToListVar('POSTLINKFLAGS', '-static-libgcc')
|
||||||
if self.vendor == 'clang':
|
if self.vendor == 'clang':
|
||||||
self.compiler.AddToListVar('POSTLINKFLAGS', '-lgcc_eh')
|
self.compiler.AddToListVar('POSTLINKFLAGS', '-lgcc_eh')
|
||||||
elif AMBuild.target['platform'] == 'darwin':
|
elif AMBuild.target['platform'] == 'darwin':
|
||||||
|
Loading…
x
Reference in New Issue
Block a user