cc/gcc: only build required core passes

We now know exactly what pass to build, so build only what is required.

Reported-by: Trevor Woerner <trevor.woerner@linaro.org>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
This commit is contained in:
Yann E. MORIN" 2014-05-05 23:24:05 +02:00
parent 98bd0146e5
commit eb0da898f8

View File

@ -84,7 +84,7 @@ cc_gcc_lang_list() {
do_cc_core_pass_1() {
local -a core_opts
if [ "${CT_CC_CORE_PASSES_NEEDED}" != "y" ]; then
if [ "${CT_CC_CORE_PASS_1_NEEDED}" != "y" ]; then
return 0
fi
@ -109,7 +109,7 @@ do_cc_core_pass_1() {
do_cc_core_pass_2() {
local -a core_opts
if [ "${CT_CC_CORE_PASSES_NEEDED}" != "y" ]; then
if [ "${CT_CC_CORE_PASS_2_NEEDED}" != "y" ]; then
return 0
fi