Skip to content

Commit

Permalink
Merge pull request quarkusio#26681 from zakkak/always-strip-debug-sym…
Browse files Browse the repository at this point in the history
…bols

Strip debug information from the native executable unconditionally
  • Loading branch information
geoand committed Jul 13, 2022
2 parents f547d57 + f69d98d commit 95189ce
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,9 @@ public Result build(List<String> args, String nativeImageName, String resultingE
if (objcopyExists) {
if (debugSymbolsEnabled) {
splitDebugSymbols(nativeImageName, resultingExecutableName);
} else {
// Strip debug symbols regardless, because the underlying JDK might contain them
objcopy("--strip-debug", resultingExecutableName);
}
// Strip debug symbols regardless, because the underlying JDK might contain them
objcopy("--strip-debug", resultingExecutableName);
} else if (SystemUtils.IS_OS_LINUX) {
log.warn(
"objcopy executable not found in PATH. Debug symbols will therefore not be separated from the executable.");
Expand Down

0 comments on commit 95189ce

Please sign in to comment.