mirror of
https://github.com/denoland/deno.git
synced 2024-11-22 15:06:54 -05:00
build: bring rustc --cfg flag support back
This commit is contained in:
parent
4f63aa4634
commit
0cdcefdcc7
1 changed files with 10 additions and 0 deletions
|
@ -45,6 +45,7 @@ template("rust_crate") {
|
|||
|
||||
forward_variables_from(invoker,
|
||||
[
|
||||
"cfg",
|
||||
"crate_name",
|
||||
"crate_type",
|
||||
"crate_version",
|
||||
|
@ -214,6 +215,15 @@ template("rust_crate") {
|
|||
args += invoker.args
|
||||
}
|
||||
|
||||
if (defined(cfg)) {
|
||||
foreach(c, cfg) {
|
||||
args += [
|
||||
"--cfg",
|
||||
"c",
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
if (defined(features)) {
|
||||
foreach(f, features) {
|
||||
args += [
|
||||
|
|
Loading…
Reference in a new issue