]> git.proxmox.com Git - mirror_edk2.git/commit
BaseTools/Source/C: split "-O2" to BUILD_OPTFLAGS
authorLaszlo Ersek <lersek@redhat.com>
Wed, 25 Jul 2018 20:59:57 +0000 (22:59 +0200)
committerLaszlo Ersek <lersek@redhat.com>
Thu, 16 Aug 2018 18:18:49 +0000 (20:18 +0200)
commitb8a66170264395edeaa61e6d22930a58e576a685
tree2a00ece98023e17cd33eae874ad1d3def02fcdc9
parent03252ae287c4a61983b3793ff71baeabe2ff3df7
BaseTools/Source/C: split "-O2" to BUILD_OPTFLAGS

The option "-O2" is not a preprocessor flag, but a code generation
(compilation) flag. Move it from BUILD_CPPFLAGS to BUILD_CFLAGS and
BUILD_CXXFLAGS.

Because "VfrCompile/GNUmakefile" uses "-O2" through BUILD_CPPFLAGS, and
because it doesn't use BUILD_CXXFLAGS, we have to introduce BUILD_OPTFLAGS
separately, so that "VfrCompile/GNUmakefile" can continue using just this
flag.

This patch doesn't change behavior.

Cc: Liming Gao <liming.gao@intel.com>
Cc: Yonghong Zhu <yonghong.zhu@intel.com>
Ref: https://bugzilla.redhat.com/show_bug.cgi?id=1540244
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
BaseTools/Source/C/Makefiles/header.makefile
BaseTools/Source/C/VfrCompile/GNUmakefile