From a9b6bcf779d8f33ea512a6c63a8074d93a463725 Mon Sep 17 00:00:00 2001 From: Nicholas Hastings Date: Tue, 22 Jan 2013 22:17:24 -0500 Subject: [PATCH] CS:GO core build fix for warnings in protobuf headers. --- core/AMBuilder | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/AMBuilder b/core/AMBuilder index 9709c81a..bfa130f4 100644 --- a/core/AMBuilder +++ b/core/AMBuilder @@ -12,6 +12,9 @@ for i in SM.sdkInfo: compiler = SM.DefaultHL2Compiler('core', i) if i == 'csgo': + # Protobuf 2.3 headers have some signed/unsigned compares. I believe that it's fixed in later versions, but Valve. + if isinstance(compiler.cxx, Cpp.CompatGCC): + compiler.AddToListVar('CFLAGS', '-Wno-sign-compare') compiler['CXXINCLUDES'].append(os.path.join(AMBuild.cache[sdk['sdk']], 'common', 'protobuf-2.3.0', 'src')) compiler['CXXINCLUDES'].append(os.path.join(AMBuild.cache[sdk['sdk']], 'public', 'engine', 'protobuf')) compiler['CXXINCLUDES'].append(os.path.join(AMBuild.cache[sdk['sdk']], 'public', 'game', 'shared', 'csgo', 'protobuf'))