瀏覽代碼

Resolve undefined _aligned_malloc compile error

nosoop 1 年之前
父節點
當前提交
59fe06351f
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      AMBuildScript

+ 4 - 0
AMBuildScript

@@ -286,6 +286,10 @@ class MMSConfig(object):
     else: # todo: is it better to check compiler.behavior?
       compiler.defines += ['COMPILER_GCC']
 
+    if sdk.name in ['css', 'hl2dm', 'dods', 'sdk2013', 'bms', 'tf2', 'l4d', 'nucleardawn', 'l4d2', 'dota', 'pvkii']:
+      if builder.target.platform in ['linux', 'mac']:
+        compiler.defines += ['NO_HOOK_MALLOC', 'NO_MALLOC_OVERRIDE']
+
     for path in paths:
       compiler.cxxincludes += [os.path.join(sdk.path, *path)]