diff --git a/AMBuildScript b/AMBuildScript index 6a2e0a5..78916de 100644 --- a/AMBuildScript +++ b/AMBuildScript @@ -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'),