Skip to content

Commit 9bb187b

Browse files
[[ Bug 15743 ]] Creates empty debug symbol files when compiling iOS engine in Debug mode, as the Debug symbols are not extracted
1 parent ea7ff45 commit 9bb187b

File tree

2 files changed

+13
-10
lines changed

2 files changed

+13
-10
lines changed

docs/notes/bugfix-15743.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# iOS standalone engine do not build anymore in Debug mode

tools/extract-debug-symbols.sh

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -52,21 +52,23 @@ for input in $@ ; do
5252
real_input="${input}"
5353
fi
5454

55-
# Extract a copy of the debugging information
56-
echo Extracting debug symbols for ${input}
57-
dsymutil --out "${output}" "${real_input}"
5855

59-
# Strip the executable
60-
$STRIP -x -S "$real_input"
56+
# If the OS is iOS and this is a debug build, do nothing
57+
if [ "$os" == "ios" -a "$BUILDTYPE" == "Debug" ] ; then
58+
echo Creating empty debug symbols file for ${input}
59+
touch "${output}"
60+
else
61+
# Extract a copy of the debugging information
62+
echo Extracting debug symbols for ${input}
63+
dsymutil --out "${output}" "${real_input}"
64+
65+
# Strip the executable
66+
$STRIP -x -S "$real_input"
67+
fi
6168
done
6269

6370
}
6471

65-
# If the OS is iOS and this is a debug build, do nothing
66-
if [ "$os" == "ios" -a "$BUILDTYPE" == "Debug" ] ; then
67-
exit 0
68-
fi
69-
7072
case $os in
7173
linux|android)
7274
extract_linux_or_android ${inputs}

0 commit comments

Comments
 (0)