Skip to content

Commit 557e538

Browse files
committed
Use our own release profile to insulate from custom release profiles
1 parent cb6c757 commit 557e538

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

src/lib.rs

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,19 @@ version = "0.0.0"
347347
# empty dummy, just so that things are being built
348348
path = "lib.rs"
349349
350+
[profile.sysroot_release]
351+
# Just the default release settings to insulate us from custom release profiles
352+
opt-level = 3
353+
debug = false
354+
strip = "none"
355+
debug-assertions = false
356+
overflow-checks = false
357+
lto = false
358+
panic = 'unwind'
359+
incremental = false
360+
codegen-units = 16
361+
rpath = false
362+
350363
{crates}
351364
352365
{patches}
@@ -426,7 +439,8 @@ path = "lib.rs"
426439
// Run cargo.
427440
let mut cmd = cargo;
428441
cmd.arg(self.mode.as_str());
429-
cmd.arg("--release");
442+
cmd.arg("--profile");
443+
cmd.arg("sysroot_release");
430444
cmd.arg("--manifest-path");
431445
cmd.arg(&manifest_file);
432446
cmd.arg("--target");

0 commit comments

Comments
 (0)