mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-09 15:37:56 -05:00
Add cargo display options to rust buildsystem. (#12309)
* Add cargo display options to rust buildsystem. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Adjust Generate-PR workflow. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Adjust more workflows Signed-off-by: Satadru Pramanik <satadru@gmail.com> --------- Signed-off-by: Satadru Pramanik <satadru@gmail.com> Co-authored-by: Satadru Pramanik <satadru@gmail.com>
This commit is contained in:
committed by
GitHub
parent
a06c42c587
commit
6c995408ba
@@ -9,10 +9,12 @@ class RUST < Package
|
||||
@rustflags = "#{ENV.fetch('RUSTFLAGS', nil)} #{@rust_flags}"
|
||||
rust_env =
|
||||
{
|
||||
LD: 'mold',
|
||||
LIBRARY_PATH: CREW_LIB_PREFIX,
|
||||
PATH: "#{CREW_PREFIX}/share/cargo/bin:" + ENV.fetch('PATH', nil),
|
||||
RUSTFLAGS: @rustflags
|
||||
CARGO_TERM_COLOR: 'always',
|
||||
CARGO_TERM_PROGRESS_WHEN: 'always',
|
||||
LD: 'mold',
|
||||
LIBRARY_PATH: CREW_LIB_PREFIX,
|
||||
PATH: "#{CREW_PREFIX}/share/cargo/bin:" + ENV.fetch('PATH', nil),
|
||||
RUSTFLAGS: @rustflags
|
||||
}.transform_keys(&:to_s)
|
||||
|
||||
@channel_flag = @rust_channel.to_s.empty? ? '' : "+#{@rust_channel}"
|
||||
@@ -41,10 +43,12 @@ class RUST < Package
|
||||
def self.install
|
||||
rust_env =
|
||||
{
|
||||
LD: 'mold',
|
||||
LIBRARY_PATH: CREW_LIB_PREFIX,
|
||||
PATH: "#{CREW_PREFIX}/share/cargo/bin:" + ENV.fetch('PATH', nil),
|
||||
RUSTFLAGS: @rustflags
|
||||
CARGO_TERM_COLOR: 'always',
|
||||
CARGO_TERM_PROGRESS_WHEN: 'always',
|
||||
LD: 'mold',
|
||||
LIBRARY_PATH: CREW_LIB_PREFIX,
|
||||
PATH: "#{CREW_PREFIX}/share/cargo/bin:" + ENV.fetch('PATH', nil),
|
||||
RUSTFLAGS: @rustflags
|
||||
}.transform_keys(&:to_s)
|
||||
|
||||
@rust_install_path.split.each do |path|
|
||||
|
||||
Reference in New Issue
Block a user