mirror of
https://github.com/denoland/deno.git
synced 2025-03-03 17:34:47 -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,
|
forward_variables_from(invoker,
|
||||||
[
|
[
|
||||||
|
"cfg",
|
||||||
"crate_name",
|
"crate_name",
|
||||||
"crate_type",
|
"crate_type",
|
||||||
"crate_version",
|
"crate_version",
|
||||||
|
@ -214,6 +215,15 @@ template("rust_crate") {
|
||||||
args += invoker.args
|
args += invoker.args
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (defined(cfg)) {
|
||||||
|
foreach(c, cfg) {
|
||||||
|
args += [
|
||||||
|
"--cfg",
|
||||||
|
"c",
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (defined(features)) {
|
if (defined(features)) {
|
||||||
foreach(f, features) {
|
foreach(f, features) {
|
||||||
args += [
|
args += [
|
||||||
|
|
Loading…
Add table
Reference in a new issue