File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ export CPATH=/usr/local/include:/mingw64/include
20
20
export LIBRARY_PATH=/usr/local/lib:/mingw64/lib
21
21
export DYLD_LIBRARY_PATH=/usr/local/lib
22
22
export PATH=` ls -d $PWD /cached_gnat/* /bin | tr ' \n' ' :' ` $PATH
23
+ export ADAFLAGS=-g1
23
24
echo PATH=$PATH
24
25
25
26
BRANCH=master
@@ -78,5 +79,16 @@ if [ $RUNNER_OS = macOS ]; then
78
79
fi
79
80
80
81
if [ " $DEBUG " != " debug" ]; then
81
- strip -v integration/vscode/ada/* /ada_language_server*
82
+ if [ $RUNNER_OS = macOS ]; then
83
+ # Install binutils to have objcopy on Mac OS X
84
+ brew install binutils
85
+ export PATH=" /usr/local/opt/binutils/bin:$PATH "
86
+ fi
87
+ ALS=` ls integration/vscode/ada/* /ada_language_server* `
88
+ objcopy --only-keep-debug ${ALS} ${ALS} .debug
89
+ objcopy --strip-all ${ALS}
90
+ cd ` dirname $ALS `
91
+ ALS=` basename ${ALS} `
92
+ objcopy --add-gnu-debuglink=${ALS} .debug ${ALS}
93
+ cd -
82
94
fi
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ function make_change_log()
19
19
20
20
chmod -R -v +x als-* -$DEBUG
21
21
for X in Linux macOS Windows ; do mv -v -f als-$X -$DEBUG /* integration/vscode/ada/; done
22
+ rm -f -v integration/vscode/ada/{linux,darwin,win32}/* .debug
22
23
pushd integration/vscode/ada
23
24
sed -i -e " /version/s/[0-9][0-9.]*/$TAG /" package.json
24
25
[ -z " $DEBUG " ] || sed -i -e ' /^ "name"/s/ada/ada-debug/' \
You can’t perform that action at this time.
0 commit comments