Skip to content

Commit a2929be

Browse files
authored
Remove cfg exec from link_deps attribute (#2148)
Build scripts of link dependencies need access to the 'target' environment which contains the library being linked against. This is needed to correctly cross-compile.
1 parent 4dbb81a commit a2929be

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

cargo/private/cargo_build_script.bzl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,6 @@ cargo_build_script = rule(
301301
variables to this build script.
302302
"""),
303303
providers = [rust_common.dep_info],
304-
cfg = "exec",
305304
),
306305
"links": attr.string(
307306
doc = "The name of the native library this crate links against.",

0 commit comments

Comments
 (0)