]> git.proxmox.com Git - mirror_edk2.git/commit - BaseTools/Conf/tools_def.template
BaseTools: Factorize GCC flags
authorPierre Gondois <pierre.gondois@arm.com>
Tue, 7 Jul 2020 08:35:22 +0000 (16:35 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Tue, 21 Jul 2020 01:34:47 +0000 (01:34 +0000)
commit17bd834eb5fd97699fbbcd146c7788df9e42030c
tree3dddfd9d20b5b0fbda8e36d9b1868e8426befb33
parentdbd546a32d5abe225306e22d43a7d86e3a042eee
BaseTools: Factorize GCC flags

GCC48_ALL_CC_FLAGS has no dependency on GCC_ALL_CC_FLAGS.
By definition, there should be such dependency.

The outcomes of this patch is that GCC48_ALL_CC_FLAGS and
other dependent configurations will inherit from the
additional "-Os" flag.
The "-Os" flag optimizes a build in size, not breaking any
build. In a gcc command line, the last optimization flag
has precedence. This means that this "-Os" flag will be
overriden by a more specific optimization configuration,
provided that this more specific flag is appended at the
end of the CC_FLAGS.

Signed-off-by: Pierre Gondois <pierre.gondois@arm.com>
Suggested-by: Tomas Pilar <Tomas.Pilar@arm.com>
Reviewed-by: Bob Feng<bob.c.feng@intel.com>
BaseTools/Conf/tools_def.template