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 edf4bea
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 19 deletions.
6 changes: 1 addition & 5 deletions iree/hal/wasm/registration/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,10 @@ 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",
Expand All @@ -41,8 +39,6 @@ cc_library(
],
)
iree_cmake_extra_content(
content = """
endif()
""",
inline = True,
Expand Down
26 changes: 12 additions & 14 deletions iree/hal/wasm/registration/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,18 @@ iree_add_all_subdirs()

if(${IREE_HAL_DRIVER_WASM})

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
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",
],
)

endif()
Expand Down

0 comments on commit edf4bea

Please sign in to comment.