Skip to content

Commit

Permalink
strip-debug (#20)
Browse files Browse the repository at this point in the history
--strip-all is quite aggressive and is most likely stripping critical information that breaks our builds. For that reason, use --strip-debug as that is the only data that we want to have stripped.
  • Loading branch information
maxded authored Dec 20, 2024
1 parent fcef13f commit 1a637e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xbuild/src/command/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ pub fn build(env: &BuildEnv) -> Result<()> {
std::process::Command::new("strip")
// I'm told this should always be valid for Android, so use this as the target
.arg("--target=elf64-little")
.arg("--strip-all")
.arg("--strip-debug")
.arg(&lib)
.spawn()
.expect("Could not strip debug symbols from lib")
Expand Down

0 comments on commit 1a637e2

Please sign in to comment.