From a556a4b10abe9acabeeb9940f519d107f6ea29f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89rico=20Rolim?= Date: Sat, 4 Jan 2020 18:41:01 -0300 Subject: [PATCH] Create cargotmp command, add more flags to makepkg. cargotmp: builds rust packages inside /tmp -> SSD savings makepkg: defines CC and CXX for clang, for build systems that support it --- fish/.config/fish/conf.d/developer.fish | 2 ++ script/.local/bin/makepkg | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/fish/.config/fish/conf.d/developer.fish b/fish/.config/fish/conf.d/developer.fish index 5af117c..5e7fd73 100644 --- a/fish/.config/fish/conf.d/developer.fish +++ b/fish/.config/fish/conf.d/developer.fish @@ -4,6 +4,8 @@ alias cformat='clang-format -i -style=webkit' alias maketmp='make BUILD_DIR=/tmp/(basename (pwd))' +alias cargotmp='env CARGO_TARGET_DIR=/tmp/cargo/(basename (pwd)) cargo' + function statusgit --argument show if test -z $show set show_status false diff --git a/script/.local/bin/makepkg b/script/.local/bin/makepkg index 5efe20a..0f56676 100755 --- a/script/.local/bin/makepkg +++ b/script/.local/bin/makepkg @@ -1,4 +1,4 @@ #!/usr/bin/env bash -RUSTFLAGS="-Clink-arg=-fuse-ld=lld" /usr/bin/makepkg "$@" +RUSTFLAGS="-Clink-arg=-fuse-ld=lld" CC="clang" CXX="clang++" /usr/bin/makepkg "$@"