Skip to content
This repository was archived by the owner on Feb 2, 2023. It is now read-only.

Commit 538a1c9

Browse files
committed
Add an option to pass extra arguments to cargo
This is e.g. useful for conditional compilation with features
1 parent f584004 commit 538a1c9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ruby/lib/helix_runtime/project.rb

+3
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,9 @@ def cargo_build
100100
if ENV['VERBOSE']
101101
cargo_args << " --verbose"
102102
end
103+
if ENV['CARGO_EXTRA_ARGS']
104+
cargo_args << ENV['CARGO_EXTRA_ARGS']
105+
end
103106
if link_args
104107
rustc_args << "-C link-args=#{link_args}"
105108
end

0 commit comments

Comments
 (0)