From 5d4d0cf106ef14c1ffe30d068106b3d118152413 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Sat, 29 Aug 2009 23:14:37 -0700 Subject: [PATCH] -Wno-parentheses is GCC-only, of course. --- extensions/tf2/AMBuilder | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/extensions/tf2/AMBuilder b/extensions/tf2/AMBuilder index 8b614d30..88bc5787 100644 --- a/extensions/tf2/AMBuilder +++ b/extensions/tf2/AMBuilder @@ -3,7 +3,8 @@ import os sdk = SM.sdkInfo['ep2v'] compiler = SM.DefaultHL2Compiler('extensions/tf2', 'ep2v') -compiler['CFLAGS'].append('-Wno-parentheses') +if compiler.cc.name == 'gcc': + compiler['CFLAGS'].append('-Wno-parentheses') name = 'game.tf2.ext.' + sdk['ext'] extension = AMBuild.AddJob(name)