]> git.proxmox.com Git - mirror_edk2.git/commit
tools_def: Remove duplicated -Os
authorPierre Gondois <pierre.gondois@arm.com>
Wed, 25 Jan 2023 09:20:59 +0000 (17:20 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Mon, 30 Jan 2023 07:11:50 +0000 (07:11 +0000)
commitbb1376254803bfdaa012c62f1cf6d6b26161cfe7
tree9093e7bfb52d5fad4d6d28825bf6f99cf4eff546
parente7aac7fc137e247edad22f7ee53b9a1fba227397
tools_def: Remove duplicated -Os

BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=2928

commit 17bd834eb5fd ("BaseTools: Factorize GCC flags")
makes GCC48_ALL_CC_FLAGS inherit from GCC_ALL_CC_FLAGS.
GCC_ALL_CC_FLAGS contains the '-Os' flag.
The latest flag in a command line overrides the previous
optimization option. This allows more specific build
configuration to override the inherited '-Os' flag.

If a build configuration includes GCC48_ALL_CC_FLAGS,
hard-coded '-Os' options are not necessary anymore.
Remove them.

Reported-by: Laszlo Ersek <lersek@redhat.com>
Signed-off-by: Pierre Gondois <pierre.gondois@arm.com>
Acked-by: Ard Biesheuvel <ardb@kernel.org>
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
Reviewed-by: Bob Feng <bob.c.feng@intel.com>
BaseTools/Conf/tools_def.template