Permalink
Browse files

Link mathlib on BMS now (for vec3_origin required by tier1 ConVar).

  • Loading branch information...
psychonic committed May 5, 2018
1 parent e2c0348 commit 20c72b51e6df539a8ae91722c66084f56bc155f9
Showing with 4 additions and 0 deletions.
  1. +4 −0 AMBuildScript
@@ -326,6 +326,8 @@ class MMSConfig(object):
if sdk.name in ['blade', 'insurgency', 'doi', 'csgo', 'dota']:
compiler.postlink += [compiler.Dep(os.path.join(lib_folder, 'interfaces_i486.a'))]
if sdk.name == 'bms':
compiler.postlink += [compiler.Dep(os.path.join(lib_folder, 'mathlib.a'))]
binary = self.LibraryBuilder(compiler, name)
@@ -345,6 +347,8 @@ class MMSConfig(object):
libs = ['tier0', 'tier1', 'vstdlib']
if sdk.name in ['swarm', 'blade', 'insurgency', 'doi', 'csgo', 'dota']:
libs.append('interfaces')
if sdk.name == 'bms':
libs.append('mathlib')
for lib in libs:
lib_path = os.path.join(sdk.path, 'lib', 'public', lib) + '.lib'
binary.compiler.linkflags.append(binary.Dep(lib_path))

0 comments on commit 20c72b5

Please sign in to comment.