aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts
diff options
context:
space:
mode:
authorGravatar Damien Martin-Guillerez <dmarting@google.com>2016-01-18 11:57:26 +0000
committerGravatar Han-Wen Nienhuys <hanwen@google.com>2016-01-18 14:35:00 +0000
commitdceee0e5feda3bf72a192f4622e741bd41480ecd (patch)
treeb94e1d141c143fa8fc2c9a9f545c8c656325a312 /scripts
parent50fce86f11f4fc5a372d008be903842576e72403 (diff)
Use a dummy build-runfiles in the bootstrap binary
-- MOS_MIGRATED_REVID=112397181
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/bootstrap/compile.sh10
1 files changed, 7 insertions, 3 deletions
diff --git a/scripts/bootstrap/compile.sh b/scripts/bootstrap/compile.sh
index 37e01995f6..33bcd01085 100755
--- a/scripts/bootstrap/compile.sh
+++ b/scripts/bootstrap/compile.sh
@@ -328,9 +328,13 @@ if [ ! -z "$JNILIB" ] ; then
run_silent "${CXX}" -o ${OUTPUT_DIR}/${JNILIB} $JNI_LD_ARGS -shared ${OUTPUT_DIR}/native/*.o -lstdc++
fi
-log "Compiling build-runfiles..."
-# Clang on Linux requires libstdc++
-run_silent "${CXX}" -o ${OUTPUT_DIR}/build-runfiles -std=c++0x src/main/tools/build-runfiles.cc -lstdc++ ${LDFLAGS}
+# Dummy build-runfiles
+cat <<'EOF' >${OUTPUT_DIR}/build-runfiles${EXE_EXT}
+#!/bin/bash
+mkdir -p $2/MANIFEST
+cp $1 $2/MANIFEST
+EOF
+chmod 0755 ${OUTPUT_DIR}/build-runfiles${EXE_EXT}
log "Compiling process-wrapper..."
run_silent "${CC}" -o ${OUTPUT_DIR}/process-wrapper -std=c99 src/main/tools/process-wrapper.c src/main/tools/process-tools.c -lm ${LDFLAGS}