aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAlex <lx@deuxfleurs.fr>2025-02-03 15:54:54 +0000
committerAlex <lx@deuxfleurs.fr>2025-02-03 15:54:54 +0000
commitb9df2d1ad1e80745350e25fd44ddaa0f0c6bcbab (patch)
tree02ca809d1305f8f76eedfac145fb843489d65d35 /Makefile
parent4dc2bc337f10be616a141ba8b52564038ef3ae41 (diff)
parent390a5d97fece744bcad3c5b7b7d31b2722d0b092 (diff)
downloadgarage-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--Makefile13
1 files changed, 5 insertions, 8 deletions
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"]' \
# ----