summaryrefslogtreecommitdiff
path: root/scripts/build/cc
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2009-03-15 20:08:06 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2009-03-15 20:08:06 (GMT)
commit24003e416f27ccce0c6a59629cb81b51f7f4c049 (patch)
tree990d295eb7be51243801e7b2ee2abc46af16ae50 /scripts/build/cc
parent6d392339c61a4d2f424da60edfa6c1269dad30d2 (diff)
Do not copy ecj.jar when it's not required.
/trunk/scripts/build/cc/gcc.sh | 4 3 1 0 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
Diffstat (limited to 'scripts/build/cc')
-rw-r--r--scripts/build/cc/gcc.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/build/cc/gcc.sh b/scripts/build/cc/gcc.sh
index 81be6f4..c2debb1 100644
--- a/scripts/build/cc/gcc.sh
+++ b/scripts/build/cc/gcc.sh
@@ -28,7 +28,9 @@ do_cc_extract() {
CT_Extract "gcc-${CT_CC_VERSION}"
CT_Patch "gcc-${CT_CC_VERSION}"
# Copy ecj-latest.jar to ecj.jar at the top of the GCC source tree
- if [ "${CT_CC_LANG_JAVA_USE_ECJ}" = "y" ]; then
+ if [ "${CT_CC_LANG_JAVA_USE_ECJ}" = "y" \
+ -a ! -f "${CT_SRC_DIR}/gcc-${CT_CC_VERSION}/ecj.jar" \
+ ]; then
CT_DoExecLog ALL cp -v "${CT_TARBALLS_DIR}/ecj-latest.jar" "${CT_SRC_DIR}/gcc-${CT_CC_VERSION}/ecj.jar"
fi
}