Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,10 @@ fn visit_libc(opts: &Opts, libc: &Path) {
}
};
maybe_fetch_ld(opts, &ver).warn("failed fetching ld");
unstrip_libc(libc, &ver).warn("failed unstripping libc");

if !opts.no_unstrip_libc {
unstrip_libc(libc, &ver).warn("failed unstripping libc");
}
}

/// Same as `visit_libc()`, but doesn't do anything if no libc is found
Expand Down
4 changes: 4 additions & 0 deletions src/opts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ pub struct Opts {
#[structopt(long)]
pub no_patch_bin: bool,

/// Disable unstripping the libc
#[structopt(long)]
pub no_unstrip_libc: bool,

/// Disable generating template solve script
#[structopt(long)]
pub no_template: bool,
Expand Down