1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-21 21:52:10 +02:00

Mark exe and dll files as executable

When git is configured to honor executable bit for files
(core.fileMode=true), the .exe and .dll files in the
repository needs to have execute bit set to be able to run
Eclipse in runtime mode on Windows.
For more details:
https://git-scm.com/docs/git-config#Documentation/git-config.txt-corefileMode
"Git for Windows" does not appear to have this problem,
but at least Cygwin does.

Change-Id: I4c164f6d99219d461c301189f101ccbf63debb50
Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
This commit is contained in:
Torbjörn Svensson 2020-07-04 13:42:35 +02:00 committed by Jonah Graham
parent d017917f35
commit 6e19332c33
8 changed files with 8 additions and 0 deletions

View file

View file

View file

View file

View file

View file

View file

@ -115,6 +115,14 @@ if test -e native/org.eclipse.cdt.native.serial/jni; then
fi
fi
##
# Mark Windows binaries as executable
##
echo "Marking Windows binaries as executable"
git ls-files -- \*.exe \*.dll | while read line; do
chmod +x "$line"
done
##
# Check that none of the above caused any changes
##