Add -Werror to xcompile's testcc
authorStefan Reinauer <reinauer@chromium.org>
Tue, 25 Oct 2011 19:28:40 +0000 (12:28 -0700)
committerPatrick Georgi <patrick@georgi-clan.de>
Thu, 27 Oct 2011 08:50:39 +0000 (10:50 +0200)
If -Werror is not specified, tests for certain compiler flags
will emit a warning, which makes the build break since we compile
with -Werror.

Change-Id: I7be56530ff9f94e5500bad226c83e47145a808d7
Signed-off-by: Stefan Reinauer <reinauer@google.com>
Reviewed-on: http://review.coreboot.org/336
Tested-by: build bot (Jenkins)
Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
util/xcompile/xcompile

index 9a0a295c75d86e2a91b9bf09978e5db1bce23aa8..49263941dfa10d9d1ae47d884b661fa960f76ed1 100644 (file)
@@ -21,7 +21,7 @@
 testcc()
 {
        echo "_start(void) {}" > .$$$$.c
-       $1 -nostdlib $2 .$$$$.c -o .$$$$.tmp 2>/dev/null >/dev/null
+       $1 -nostdlib -Werror $2 .$$$$.c -o .$$$$.tmp 2>/dev/null >/dev/null
        ret=$?
        rm -f .$$$$.c .$$$$.tmp
        return $ret