Removed -Wno-parentheses from posix build and fixed warnings (
bug 5745, r=psychonic).
1 # vim: set ts=2 sw=2 tw=99 noet ft=python:
6 if AMBuild.target['platform'] not in sdk['platform']:
9 compiler = SM.DefaultHL2Compiler('extensions/sdktools', i)
10 compiler['CXXINCLUDES'].append(os.path.join(AMBuild.sourceFolder, 'public', 'jit'))
11 compiler['CXXINCLUDES'].append(os.path.join(AMBuild.sourceFolder, 'public', 'jit', 'x86'))
13 if compiler.cc.name == 'gcc' or compiler.cc.name == 'clang':
14 compiler['CXXFLAGS'].append('-Wno-invalid-offsetof')
17 compiler['CDEFINES'].append('HOOKING_ENABLED')
19 name = 'sdktools.ext.' + sdk['ext']
20 extension = AMBuild.AddJob(name)
21 binary = Cpp.LibraryBuilder(name, AMBuild, extension, compiler)
22 SM.PreSetupHL2Job(extension, binary, i)
23 binary.AddSourceFiles('extensions/sdktools', [
42 'gamerulesnatives.cpp',
44 'CDetour/detours.cpp',
48 SM.PostSetupHL2Job(extension, binary, i)
49 SM.AutoVersion('extensions/sdktools', binary)
50 SM.ExtractDebugInfo(extension, binary)