Skip to content

Commit

Permalink
Remove WASM driver registration from Bazel until it builds there.
Browse files Browse the repository at this point in the history
  • Loading branch information
ScottTodd committed Mar 12, 2021
1 parent 49f25e6 commit 51234cd
Showing 1 changed file with 15 additions and 17 deletions.
32 changes: 15 additions & 17 deletions iree/hal/wasm/registration/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -20,29 +20,27 @@ package(
licenses = ["notice"], # Apache 2.0
)

# TODO(scotttodd): add to Bazel when the WASM driver builds with it
iree_cmake_extra_content(
content = """
if(${IREE_HAL_DRIVER_WASM})
""",
inline = True,
)
cc_library(
name = "registration",
srcs = ["driver_module.c"],
hdrs = ["driver_module.h"],
defines = [
"IREE_HAL_HAVE_WASM_DRIVER_MODULE=1",
],
deps = [
"//iree/hal:api",
"//iree/hal/local:task_driver",
"//iree/hal/local/loaders:wasm_module_loader",
],
iree_cc_library(
NAME
registration
HDRS
"driver_module.h"
SRCS
"driver_module.c"
DEPS
iree::hal::api
iree::hal::local::loaders::wasm_module_loader
iree::hal::local::task_driver
DEFINES
"IREE_HAL_HAVE_WASM_DRIVER_MODULE=1"
PUBLIC
)
iree_cmake_extra_content(
content = """
endif()
""",
inline = True,
Expand Down

0 comments on commit 51234cd

Please sign in to comment.