commit | dc1d893ff0bd853b8d0ee5158b82c00ed74682e2 | [log] [tgz] |
---|---|---|
author | Lei Zhang <antiagainst@google.com> | Fri Oct 02 16:44:42 2020 -0400 |
committer | GitHub <noreply@github.com> | Fri Oct 02 16:44:42 2020 -0400 |
tree | 41b5113f473ee9a7909481cc6266501e9c2e967c | |
parent | dfe5edf68eebc512a47853dc9c8018b94c4bc276 [diff] |
[spirv] Enable SPIRVCommon for Metal-SPIRV too (#3327)
diff --git a/iree/compiler/Dialect/HAL/Target/SPIRVCommon/BUILD b/iree/compiler/Dialect/HAL/Target/SPIRVCommon/BUILD index 9c55ead..ae5d0d2 100644 --- a/iree/compiler/Dialect/HAL/Target/SPIRVCommon/BUILD +++ b/iree/compiler/Dialect/HAL/Target/SPIRVCommon/BUILD
@@ -22,7 +22,7 @@ iree_cmake_extra_content( content = """ -if(NOT ${IREE_TARGET_BACKEND_VULKAN-SPIRV}) +if(NOT ${IREE_TARGET_BACKEND_VULKAN-SPIRV} AND NOT ${IREE_TARGET_BACKEND_METAL-SPIRV}) return() endif() """,
diff --git a/iree/compiler/Dialect/HAL/Target/SPIRVCommon/CMakeLists.txt b/iree/compiler/Dialect/HAL/Target/SPIRVCommon/CMakeLists.txt index 0922d4a..45d0b21 100644 --- a/iree/compiler/Dialect/HAL/Target/SPIRVCommon/CMakeLists.txt +++ b/iree/compiler/Dialect/HAL/Target/SPIRVCommon/CMakeLists.txt
@@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -if(NOT ${IREE_TARGET_BACKEND_VULKAN-SPIRV}) +if(NOT ${IREE_TARGET_BACKEND_VULKAN-SPIRV} AND NOT ${IREE_TARGET_BACKEND_METAL-SPIRV}) return() endif()