1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-07 09:46:02 +02:00

Bug 521515: Save the log file all the time when building natives

Change-Id: I11b149d94f837dcb9537682a55551add289f8924
This commit is contained in:
Jonah Graham 2020-08-12 20:09:47 -04:00
parent 49dc726dd1
commit ba24afc3a4
2 changed files with 3 additions and 3 deletions

1
.gitignore vendored
View file

@ -9,3 +9,4 @@ check_code_cleanliness_workspace/
.META-INF_MANIFEST.MF
.polyglot..META-INF_MANIFEST.MF
*.takari_issue_192
*.log

View file

@ -107,10 +107,9 @@ done
##
for p in native/org.eclipse.cdt.native.serial/native_src core/org.eclipse.cdt.core.native/native_src; do
echo "Rebuilding $p natives to make sure they match source"
logfile=$(mktemp /tmp/make-natives-log.XXXXXX)
logfile=make-natives-${p//\//-}.log
if ! make -C $p rebuild >${logfile} 2>&1; then
echo "Rebuilding of $p natives failed. The log is part of the artifacts of the build"
cp ${logfile} make-${p//\//_}.log
echo "Rebuilding of $p natives failed. The log (${logfile}) is part of the artifacts of the build"
exit 1
fi
done