From 2625fd044547c7e8b8de287963ba9422aff1f051 Mon Sep 17 00:00:00 2001 From: Tianhao Wang Date: Sat, 11 Mar 2023 00:39:38 +0100 Subject: fix linking --- Cargo.toml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'Cargo.toml') diff --git a/Cargo.toml b/Cargo.toml index 6eef6ef..5f91e89 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,9 +7,24 @@ edition = "2021" [dependencies] + +[build] +target = "x86_64-rustubs" + +[lib] +crate-type = ["staticlib"] + [profile.dev] panic = "abort" +debug = 1 +lto = true [profile.release] panic = "abort" - +#opt-level = 0 +opt-level = 3 +debug = 0 +overflow-checks = false +lto = true +codegen-units = 1 +debug-assertions = false -- cgit v1.2.3-70-g09d2