In jam, unset variables aren't equal to 0

Make our Werror check work again with gcc.
This commit is contained in:
Adrien Destugues
2014-04-15 09:17:57 +02:00
parent 3eff063958
commit 840839b546
+1 -1
View File
@@ -498,7 +498,7 @@ rule ArchitectureSetupWarnings architecture
rule EnableWerror dirTokens : scope { rule EnableWerror dirTokens : scope {
# Clang gives way more warnings than GCC, so that code won't compile # Clang gives way more warnings than GCC, so that code won't compile
# -Werror when using Clang. # -Werror when using Clang.
if $(HAIKU_CC_IS_CLANG_$(architecture)) = 0 { if $(HAIKU_CC_IS_CLANG_$(architecture)) != 1 {
SetConfigVar WARNINGS : HAIKU_TOP $(dirTokens) : treatAsErrors SetConfigVar WARNINGS : HAIKU_TOP $(dirTokens) : treatAsErrors
: $(scope) ; : $(scope) ;
} }