1
0
Fork 0
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:
Bert Belder 2019-01-08 19:17:27 +01:00
parent 4f63aa4634
commit 0cdcefdcc7
No known key found for this signature in database
GPG key ID: 7A77887B2E2ED461

View file

@ -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 += [