Skip to content

Commit 2b797c5

Browse files
committed
Fix toolchain dylib_ext selects
1 parent 308525b commit 2b797c5

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

rs/experimental/toolchains/declare_rustc_toolchains.bzl

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,11 @@ def declare_rustc_toolchains(
5959
allocator_library = None,
6060
global_allocator_library = None,
6161
binary_ext = select({
62+
"@platforms//cpu:wasm32": ".wasm",
63+
"@platforms//cpu:wasm64": ".wasm",
6264
"@platforms//os:emscripten": ".js",
6365
"@platforms//os:uefi": ".efi",
6466
"@platforms//os:windows": ".exe",
65-
"@platforms//cpu:wasm32": ".wasm",
66-
"@platforms//cpu:wasm64": ".wasm",
6767
"//conditions:default": "",
6868
}),
6969
staticlib_ext = select({
@@ -76,7 +76,6 @@ def declare_rustc_toolchains(
7676
dylib_ext = select({
7777
"@platforms//cpu:wasm32": ".wasm",
7878
"@platforms//cpu:wasm64": ".wasm",
79-
"@platforms//os:none": ".so",
8079
"@platforms//os:android": ".so",
8180
"@platforms//os:emscripten": ".js",
8281
"@platforms//os:fuchsia": ".so",

0 commit comments

Comments
 (0)