audk/BaseTools/Source/C/Makefiles
Laszlo Ersek 777f4aa083 BaseTools/header.makefile: revert gcc-8 "-Wno-xxx" options on OSX
I recently added the gcc-8 specific "-Wno-stringop-truncation" and
"-Wno-restrict" options to BUILD_CFLAGS, both for "Darwin" (XCODE5 /
clang, OSX) and otherwise (gcc, Linux / Cygwin).

I also regression-tested the change with gcc-4.8 on Linux -- gcc-4.8 does
not know either of the (gcc-8 specific) "-Wno-stringop-truncation" and
"-Wno-restrict" options, yet the build completed fine (by GCC design).

Regarding OSX, my expectation was that

- XCODE5 / clang would either recognize these warnings options (because
  clang does recognize most -W options of gcc),

- or, similarly to gcc, clang would simply ignore the "-Wno-xxx" flags
  that it didn't recognize.

Neither is the case; the new flags have broken the BaseTools build on OSX.
Revert them (for OSX only).

Cc: Liming Gao <liming.gao@intel.com>
Cc: Yonghong Zhu <yonghong.zhu@intel.com>
Reported-by: Liming Gao <liming.gao@intel.com>
Fixes: 1d212a83df
Fixes: 9222154ae7
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
Acked-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
2018-03-07 22:42:55 +01:00
..
NmakeSubdirs.bat BaseTools/Source/C/Makefiles: Fix NmakeSubdirs.bat always return 0 2017-03-02 16:43:42 +08:00
app.makefile BaseTools: Update Makefile to work at absolute path 2017-12-25 11:05:44 +08:00
footer.makefile BaseTools: Replace ARCH with HOST_ARCH in C Makefile to avoid conflict 2017-11-30 13:06:44 +08:00
header.makefile BaseTools/header.makefile: revert gcc-8 "-Wno-xxx" options on OSX 2018-03-07 22:42:55 +01:00
lib.makefile License header updated to match correct format. 2014-08-28 13:53:34 +00:00
ms.app BaseTools: Update Makefile to work at absolute path 2017-12-25 11:05:44 +08:00
ms.common BaseTools: Barf on unknown HOST_ARCH in C Makefile 2018-01-24 11:47:32 +08:00
ms.lib Sync BaseTool trunk (version r2649) into EDKII BaseTools. 2014-01-27 05:23:15 +00:00
ms.rule License header updated to match correct format. 2014-08-28 13:53:34 +00:00