Skip to content

Commit

Permalink
Restrict C++ linker workarounds to Linux.
Browse files Browse the repository at this point in the history
  • Loading branch information
dvander committed Oct 12, 2023
1 parent 133f510 commit e4b653a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions AMBuildScript
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand Down

0 comments on commit e4b653a

Please sign in to comment.