]> git.proxmox.com Git - mirror_edk2.git/commit
BaseTools GCC: move -c compiler flag to build rules
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Tue, 2 Aug 2016 13:38:58 +0000 (15:38 +0200)
committerArd Biesheuvel <ard.biesheuvel@linaro.org>
Wed, 3 Aug 2016 15:41:41 +0000 (17:41 +0200)
commit108c5b601860af0c3752d37e58e573e79a69c081
treef7a730b5fad34f59c4d007252e98ecb7ea6a2c33
parent87ee6390cbeb2d15490943bca2978f166f213c13
BaseTools GCC: move -c compiler flag to build rules

In order to be able to share the compiler flags with the linker (which
is required for LTO since it involves the linker doing code generation
based on the LTO bytecode), move the -c GCC argument to the build rules,
and drop it from the GCC CC_FLAGS definitions in tools_def.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Liming Gao <liming.gao@intel.com>
BaseTools/Conf/build_rule.template
BaseTools/Conf/tools_def.template