Skip to content

Commit 3eb2f17

Browse files
feat(rust): Remove stripping for Rust artifacts (#464)
* Strip debug info from Rust targets * Conditional stripping (off by default) * Fix formatting: * Fix example * Fix spellcheck * Remove stripping for Rust targets * Fix linter
1 parent 8787c48 commit 3eb2f17

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

earthly/rust/scripts/std_build.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -230,14 +230,7 @@ def readelf(results: exec_manager.Results, bin_file: str) -> None:
230230
)
231231

232232

233-
def strip(results: exec_manager.Results, bin_file: str) -> None:
234-
"""Strip."""
235-
results.add(
236-
exec_manager.cli_run(f"strip -v target/release/{bin_file}", name=f"strip for '{bin_file}'", verbose=True),
237-
)
238-
239-
240-
def main() -> None: # noqa: C901, PLR0915
233+
def main() -> None: # noqa: C901
241234
"""Rust Standard Build."""
242235
# Force color output in CI
243236
rich.reconfigure(color_system="256")
@@ -372,7 +365,6 @@ def main() -> None: # noqa: C901, PLR0915
372365
help_check(results, bin_name, verbose=args.verbose)
373366
ldd(results, bin_name)
374367
readelf(results, bin_name)
375-
strip(results, bin_name)
376368

377369
results.print()
378370
if not results.ok():

0 commit comments

Comments
 (0)