Disable strip setting in profile and manually strip with llvm the build (#4966)

* disable strip setting in profile and manually strip with llvm the build

* remove rustc_llvm

* disable debug if wasm opt will run

* fix clippy

* don't strip if we are splitting with wasm-split

* keep names when running wasm-split
This commit is contained in:
Evan Almloff authored and GitHub committed 2025-11-30 15:29:12 -05:00
1 parent cce5bf687a
commit c58526a36b
2 files changed
+56 -48

No files matched your search

+11
View File
@@ -274,6 +274,17 @@ impl Workspace {
.join("gcc-ld")
}
// wasm-ld: ./rustup/toolchains/nightly-x86_64-unknown-linux-gnu/bin/wasm-ld
// rust-lld: ./rustup/toolchains/nightly-x86_64-unknown-linux-gnu/bin/rust-lld
pub fn rustc_objcopy(&self) -> PathBuf {
self.sysroot
.join("lib")
.join("rustlib")
.join(Triple::host().to_string())
.join("bin")
.join("rust-objcopy")
}
/// Find the "main" package in the workspace. There might not be one!
pub fn find_main_package(&self, package: Option<String>) -> Result<NodeId> {
if let Some(package) = package {