Skip to content

Commit

Permalink
rust: set a dummy GIT_DIR to avoid rust using git
Browse files Browse the repository at this point in the history
  • Loading branch information
lazka committed Dec 23, 2022
1 parent bdbdc15 commit b407d66
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mingw-w64-rust/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,10 @@ build() {
_rust_conf+=("--enable-vendor")
fi

# The rust build uses git if it's available but can't handle cygwin git paths
# so we try to make git not detect any repo with this
export GIT_DIR=/dev/null

# For a faster build:
# - add --disable-docs and --disable-compiler-docs
# - compile only rustc by removing --enable-extended
Expand Down

0 comments on commit b407d66

Please sign in to comment.