0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-10-29 08:58:01 -04:00

build: properly rebuild rust crates when their deps change

This commit is contained in:
Bert Belder 2018-09-16 17:39:23 -07:00
parent bdfaf12186
commit ba8757b44a
No known key found for this signature in database
GPG key ID: 7A77887B2E2ED461

View file

@ -180,6 +180,8 @@ template("run_rustc") {
deps = []
}
inputs = []
# Build the list of '--extern' arguments from the 'extern_infos' array.
foreach(info, extern_infos) {
rlib = "$out_dir/lib${info.crate_name_and_version}.rlib"
@ -187,7 +189,11 @@ template("run_rustc") {
"--extern",
info.crate_name + "=" + rebase_path(rlib, root_build_dir),
]
deps += [ info.label ]
inputs += [ rlib ]
deps += [
"${info.label}_rustc",
info.label,
]
}
}
}