summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@chromium.org>2015-03-12 03:56:06 -0400
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2015-03-23 08:58:41 +0000
commit3ffcec1636fd596073abfebcb10a9f949085714e (patch)
tree27087fd07c69c20266c43e22372137225989f856
parent4cf3d148178adb22e1292090f4dc97b910149e32 (diff)
downloadvboot-3ffcec1636fd596073abfebcb10a9f949085714e.tar.gz
split -Werror out into a dedicated var
This lets us control it explicitly. In CrOS, we won't turn it off, but most distros will want to as it's too hard to keep a handle on compilers and various settings users leverage. BUG=chromium:466499 TEST=precq still passes BRANCH=None Change-Id: I11bf03acefa3fd624dd4c5688dd18e3a3c87647d Reviewed-on: https://chromium-review.googlesource.com/259521 Reviewed-by: Randall Spangler <rspangler@chromium.org> Tested-by: Mike Frysinger <vapier@chromium.org> Commit-Queue: Mike Frysinger <vapier@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/261751 Commit-Queue: Vadim Bendebury <vbendeb@chromium.org> Tested-by: Vadim Bendebury <vbendeb@chromium.org> Reviewed-by: Vadim Bendebury <vbendeb@chromium.org>
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index a9abdbbc..5645a8cd 100644
--- a/Makefile
+++ b/Makefile
@@ -120,9 +120,10 @@ endif
#
# Flag ordering: arch, then -f, then -m, then -W
DEBUG_FLAGS := $(if ${DEBUG},-g -O0,-Os)
+WERROR := -Werror
COMMON_FLAGS := -nostdinc -pipe \
-ffreestanding -fno-builtin -fno-stack-protector \
- -Werror -Wall -Wstrict-prototypes ${DEBUG_FLAGS}
+ ${WERROR} -Wall -Wstrict-prototypes ${DEBUG_FLAGS}
# Note: FIRMWARE_ARCH is defined by the Chromium OS ebuild.
ifeq (${FIRMWARE_ARCH}, arm)