diff options
author | Mike Frysinger <vapier@chromium.org> | 2015-03-12 03:56:06 -0400 |
---|---|---|
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | 2015-03-13 02:24:55 +0000 |
commit | 47c2aa0b71cabac1b50752a146cb2d8d4e0f304e (patch) | |
tree | 2b32cceb39062982ddbcec2fef3140aab8365030 | |
parent | 89901f00ef04b38cd2ef6f59e7e26630d75ab5e6 (diff) | |
download | vboot-47c2aa0b71cabac1b50752a146cb2d8d4e0f304e.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>
-rw-r--r-- | Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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) |