Add an option to pass extra arguments to cargo

This is e.g. useful for conditional compilation with features
This commit is contained in:
konstin 2018-04-12 00:35:30 +02:00
parent f5840040ef
commit 538a1c9fa9
1 changed files with 3 additions and 0 deletions

View File

@ -100,6 +100,9 @@ module HelixRuntime
if ENV['VERBOSE']
cargo_args << " --verbose"
end
if ENV['CARGO_EXTRA_ARGS']
cargo_args << ENV['CARGO_EXTRA_ARGS']
end
if link_args
rustc_args << "-C link-args=#{link_args}"
end