From f805ca56407c905824b3af101ab3195d9852a28f Mon Sep 17 00:00:00 2001 From: Daniel Bulant Date: Sun, 17 Dec 2023 17:42:29 +0100 Subject: [PATCH] enable more optimalizations --- 2023/16/Cargo.toml | 2 ++ 2023/16/build.sh | 2 ++ 2 files changed, 4 insertions(+) create mode 100644 2023/16/build.sh diff --git a/2023/16/Cargo.toml b/2023/16/Cargo.toml index bef978f..8a25d7f 100644 --- a/2023/16/Cargo.toml +++ b/2023/16/Cargo.toml @@ -8,6 +8,8 @@ edition = "2021" [profile.release] opt-level = 3 +lto = "fat" +codegen-units = 1 [target.x86_64-unknown-linux-gnu] rustflags = [ diff --git a/2023/16/build.sh b/2023/16/build.sh new file mode 100644 index 0000000..5e49cd1 --- /dev/null +++ b/2023/16/build.sh @@ -0,0 +1,2 @@ +#!/bin/fish +RUSTFLAGS='-C target-feature=+crt-static -C target-cpu=native' cargo build -r \ No newline at end of file