From edc673650247fa733d0e3da9ad65e0e0f8f41318 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Mon, 3 Feb 2025 16:01:47 +0100 Subject: [PATCH] rm cargo config.toml and update makefile --- .cargo/config.toml | 3 --- Makefile | 13 +++++-------- 2 files changed, 5 insertions(+), 11 deletions(-) delete mode 100644 .cargo/config.toml diff --git a/.cargo/config.toml b/.cargo/config.toml deleted file mode 100644 index 7e2ad9f3..00000000 --- a/.cargo/config.toml +++ /dev/null @@ -1,3 +0,0 @@ -#[target.x86_64-unknown-linux-gnu] -#linker = "clang" -#rustflags = ["-C", "link-arg=-fuse-ld=mold"] diff --git a/Makefile b/Makefile index 55fa16dd..22e1f548 100644 --- a/Makefile +++ b/Makefile @@ -1,13 +1,10 @@ -.PHONY: doc all release shell run1 run2 run3 +.PHONY: doc all run1 run2 run3 all: - clear; cargo build - -release: - nix-build --attr pkgs.amd64.release --no-build-output - -shell: - nix-shell + clear + cargo build \ + --config 'target.x86_64-unknown-linux-gnu.linker="clang"' \ + --config 'target.x86_64-unknown-linux-gnu.rustflags=["-C", "link-arg=-fuse-ld=mold"]' \ # ----