Skip to content

Commit

Permalink
Dont' add vulkan_headers submodule by default (iree-org#9386)
Browse files Browse the repository at this point in the history
Allows to clone fewer submodules if (cross-)compiling for a target that
doesn't involve the HAL Vulkan driver.
  • Loading branch information
marbre authored Jun 8, 2022
1 parent 84c5bb4 commit 9b86ad5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,9 @@ endif()

add_subdirectory(build_tools/third_party/flatcc EXCLUDE_FROM_ALL)

add_subdirectory(third_party/vulkan_headers EXCLUDE_FROM_ALL)
if(IREE_HAL_DRIVER_VULKAN)
add_subdirectory(third_party/vulkan_headers EXCLUDE_FROM_ALL)
endif()

# TODO(scotttodd): Iterate some more and find a better place for this.
if(NOT CMAKE_CROSSCOMPILING)
Expand Down

0 comments on commit 9b86ad5

Please sign in to comment.