Branch: refs/heads/master
  Home:   https://github.com/tianocore/edk2
  Commit: bb1376254803bfdaa012c62f1cf6d6b26161cfe7
      
https://github.com/tianocore/edk2/commit/bb1376254803bfdaa012c62f1cf6d6b26161cfe7
  Author: Pierre Gondois <pierre.gond...@arm.com>
  Date:   2023-01-30 (Mon, 30 Jan 2023)

  Changed paths:
    M BaseTools/Conf/tools_def.template

  Log Message:
  -----------
  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 <ler...@redhat.com>
Signed-off-by: Pierre Gondois <pierre.gond...@arm.com>
Acked-by: Ard Biesheuvel <a...@kernel.org>
Reviewed-by: Liming Gao <gaolim...@byosoft.com.cn>
Reviewed-by: Bob Feng <bob.c.f...@intel.com>




_______________________________________________
edk2-commits mailing list
edk2-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to