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
This commit is contained in:
Érico Rolim 2020-01-04 18:41:01 -03:00
parent d2f873b9c0
commit a556a4b10a
2 changed files with 3 additions and 1 deletions

View File

@ -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

View File

@ -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 "$@"