Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
jfirebaugh committed Nov 21, 2022
1 parent 8a1268a commit d542948
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions bazel/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,15 @@ alias(
}),
)

constraint_value(
name = "os_emscripten",
constraint_setting = "@platforms//os",
)

platform(
name = "platform_wasm",
constraint_values = [
"@platforms//cpu:wasm32",
":os_emscripten",
],
)
2 changes: 1 addition & 1 deletion bazel/emscripten_toolchain/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ package(default_visibility = ["//visibility:public"])
# Name depends on rules_nodejs version being used.
# https://github.com/emscripten-core/emsdk/issues/1020
# https://github.com/bazelbuild/rules_nodejs/issues/3375
node_files = "@nodejs_host//:node_files" if existing_rule("@nodejs_host//:node_files") else "@nodejs//:node_files"
node_files = "@nodejs_host//:node_files"

filegroup(
name = "common_files",
Expand Down

0 comments on commit d542948

Please sign in to comment.