core/AMBuilder
changeset 3745 b8df310a0a43
parent 3743 a98686a77974
child 3748 f968eb892d4c
     1.1 --- a/core/AMBuilder	Tue Jan 22 22:02:18 2013 -0500
     1.2 +++ b/core/AMBuilder	Tue Jan 22 22:17:24 2013 -0500
     1.3 @@ -12,6 +12,9 @@
     1.4  	compiler = SM.DefaultHL2Compiler('core', i)
     1.5  
     1.6  	if i == 'csgo':
     1.7 +		# Protobuf 2.3 headers have some signed/unsigned compares. I believe that it's fixed in later versions, but Valve.
     1.8 +		if isinstance(compiler.cxx, Cpp.CompatGCC):
     1.9 +			compiler.AddToListVar('CFLAGS', '-Wno-sign-compare')
    1.10  		compiler['CXXINCLUDES'].append(os.path.join(AMBuild.cache[sdk['sdk']], 'common', 'protobuf-2.3.0', 'src'))
    1.11  		compiler['CXXINCLUDES'].append(os.path.join(AMBuild.cache[sdk['sdk']], 'public', 'engine', 'protobuf'))
    1.12  		compiler['CXXINCLUDES'].append(os.path.join(AMBuild.cache[sdk['sdk']], 'public', 'game', 'shared', 'csgo', 'protobuf'))