Fix linker issues on Linux.
This commit is contained in:
parent
fac3138ff5
commit
f01ad5317a
@ -509,6 +509,7 @@ class SMConfig(object):
|
||||
self.AddVersioning(binary)
|
||||
if binary.compiler.like('msvc'):
|
||||
binary.compiler.linkflags += ['/SUBSYSTEM:WINDOWS']
|
||||
self.AddCxxCompat(binary)
|
||||
|
||||
# Dumb clang behavior means we have to manually find libclang_rt.
|
||||
if self.enable_asan:
|
||||
@ -568,9 +569,16 @@ class SMConfig(object):
|
||||
self.ConfigureForExtension(context, binary.compiler)
|
||||
return binary
|
||||
|
||||
def AddCxxCompat(self, binary):
|
||||
if binary.compiler.target.platform == 'linux':
|
||||
binary.sources += [
|
||||
os.path.join(builder.sourcePath, 'public', 'amtl', 'compat', 'stdcxx.cpp'),
|
||||
]
|
||||
|
||||
def ConfigureForHL2(self, context, binary, sdk):
|
||||
compiler = binary.compiler
|
||||
SetArchFlags(compiler)
|
||||
self.AddCxxCompat(binary)
|
||||
|
||||
compiler.cxxincludes += [
|
||||
os.path.join(self.mms_root, 'core'),
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit fb8a4edaeaeea97b1c07f42b8a8ba97ce2c614cd
|
||||
Subproject commit 285b4f853c0003023838140113e3ec066bd800c6
|
Loading…
Reference in New Issue
Block a user