# HG changeset patch # User "Yann E. MORIN" # Date 1399325045 -7200 # Node ID 15fb3cdc8c48c73a4b65eea3e32c301a09cef155 # Parent 1ff943ae14d75219f47324c6252aa9ea2105d4a8 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 Signed-off-by: "Yann E. MORIN" diff -r 1ff943ae14d7 -r 15fb3cdc8c48 scripts/build/cc/gcc.sh --- a/scripts/build/cc/gcc.sh Mon May 05 23:29:48 2014 +0200 +++ b/scripts/build/cc/gcc.sh Mon May 05 23:24:05 2014 +0200 @@ -84,7 +84,7 @@ 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_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