Skip to content

Commit

Permalink
Add rustup prefix to PATH.
Browse files Browse the repository at this point in the history
  • Loading branch information
reitermarkus committed Nov 22, 2024
1 parent 17fd0c6 commit a4469c7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/tasks/rust.rake
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ task :rust => [:'brew:casks_and_formulae', :sccache] do
add_line_to_file bash_environment,
'mkdir -p "$CARGO_HOME/bin" && export PATH="$CARGO_HOME/bin:$PATH"'

rustup_prefix = capture('brew', '--prefix', 'rustup').chomp
add_line_to_file fish_environment,
"set -x fish_user_paths \"#{rustup_prefix}/bin\" $fish_user_paths"
add_line_to_file bash_environment,
"export PATH=\"#{rustup_prefix}/bin:$PATH\""

add_line_to_file fish_environment,
'set -x CARGO_TARGET_ARM_UNKNOWN_LINUX_GNUEABIHF_LINKER arm-unknown-linux-gnueabihf-gcc'
add_line_to_file bash_environment,
Expand Down

0 comments on commit a4469c7

Please sign in to comment.