From 909552e3c0d7aa39ab0162ee99507a6d1c5fc89a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABtan=20Harter?= Date: Wed, 28 Aug 2019 19:46:47 +0200 Subject: [PATCH] makefiles/cflags.inc.mk: change optional CFLAGS to 'OPTIONAL_CFLAGS' Update the optional flags to use 'OPTIONAL_CFLAGS' instead of evaluating everytime. They are now blacklisted by architecture/toolchain according to the current docker reference image. --- makefiles/cflags.inc.mk | 30 +++++++----------------------- 1 file changed, 7 insertions(+), 23 deletions(-) diff --git a/makefiles/cflags.inc.mk b/makefiles/cflags.inc.mk index 9b23a1994d..96627d22f4 100644 --- a/makefiles/cflags.inc.mk +++ b/makefiles/cflags.inc.mk @@ -11,37 +11,19 @@ endif # 0x0 might be a sane memory location for embedded systems, so the test must not be removed. # Right now clang does not use the *delete-null-pointer* optimization, and does not understand the parameter. # Related issues: #628, #664. -ifeq ($(shell $(CC) -fno-delete-null-pointer-checks -E - 2>/dev/null >/dev/null &1 1>/dev/null /dev/null >/dev/null &1 1>/dev/null /dev/null >/dev/null