diff options
author | Alex <lx@deuxfleurs.fr> | 2025-02-03 15:54:54 +0000 |
---|---|---|
committer | Alex <lx@deuxfleurs.fr> | 2025-02-03 15:54:54 +0000 |
commit | b9df2d1ad1e80745350e25fd44ddaa0f0c6bcbab (patch) | |
tree | 02ca809d1305f8f76eedfac145fb843489d65d35 /Makefile | |
parent | 4dc2bc337f10be616a141ba8b52564038ef3ae41 (diff) | |
parent | 390a5d97fece744bcad3c5b7b7d31b2722d0b092 (diff) | |
download | garage-b9df2d1ad1e80745350e25fd44ddaa0f0c6bcbab.tar.gz garage-b9df2d1ad1e80745350e25fd44ddaa0f0c6bcbab.zip |
Merge pull request 'compile with crane' (#950) from nix-crane into main
Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/950
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 13 |
1 files changed, 5 insertions, 8 deletions
@@ -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"]' \ # ---- |