diff --git a/Cargo.toml b/Cargo.toml index 34ae47a..0135172 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -44,3 +44,4 @@ lto = true # Link Time Optimization usually reduces size of binaries and static panic = "abort" lto = true # Link Time Optimization usually reduces size of binaries and static libraries opt-level = "z" +codegen-units = 1 diff --git a/deploy.py b/deploy.py index 78ddfe1..398c1da 100755 --- a/deploy.py +++ b/deploy.py @@ -372,6 +372,10 @@ class OpenSKInstaller: "-D", "warnings", "--remap-path-prefix={}=".format(os.getcwd()), + "-C", + "link-arg=-icf=all", + "-C", + "force-frame-pointers=no", ] env = os.environ.copy() env["RUSTFLAGS"] = " ".join(rust_flags)