Skip to content

Commit

Permalink
[rust] use experimental_use_cc_common_link everywhere but windows (#3046
Browse files Browse the repository at this point in the history
)
  • Loading branch information
mikea authored Nov 2, 2024
1 parent 4d64820 commit 7e1333e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
8 changes: 8 additions & 0 deletions build/wd_rust_binary.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ def wd_rust_binary(
visibility = visibility,
data = data,
proc_macro_deps = proc_macro_deps,
experimental_use_cc_common_link = select({
"@platforms//os:windows": 0,
"//conditions:default": 1,
}),
)

rust_test(
Expand All @@ -66,4 +70,8 @@ def wd_rust_binary(
# our tests are usually very heavy and do not support concurrent invocation
"RUST_TEST_THREADS": "1",
},
experimental_use_cc_common_link = select({
"@platforms//os:windows": 0,
"//conditions:default": 1,
}),
)
4 changes: 4 additions & 0 deletions build/wd_rust_crate.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -123,4 +123,8 @@ def wd_rust_crate(
crate_features = crate_features,
deps = test_deps,
proc_macro_deps = test_proc_macro_deps,
experimental_use_cc_common_link = select({
"@platforms//os:windows": 0,
"//conditions:default": 1,
}),
)

0 comments on commit 7e1333e

Please sign in to comment.