Restrict C++ linker workarounds to Linux.

This commit is contained in:
David Anderson 2023-10-11 22:04:45 -07:00
parent 133f510b51
commit e4b653a91b

View File

@ -338,11 +338,13 @@ class MMSConfig(object):
def HL2Library(self, context, compiler, name, sdk):
binary = self.Library(compiler, name)
binary.sources += [
os.path.join(context.sourcePath, 'third_party', 'amtl', 'compat', 'stdcxx.cpp'),
]
cxx = binary.compiler
if cxx.target.platform == 'linux':
binary.sources += [
os.path.join(context.sourcePath, 'third_party', 'amtl', 'compat', 'stdcxx.cpp'),
]
cxx.cxxincludes += [
os.path.join(context.currentSourcePath),
os.path.join(context.currentSourcePath, 'sourcehook'),