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"]' \ # ----