From 2daacc2fbeefcbc877146dd3a97f14435a3d9e36 Mon Sep 17 00:00:00 2001 From: Scott Todd Date: Thu, 26 Oct 2023 10:48:26 -0700 Subject: [PATCH] Use MSVC instead of clang, skip stablehlo submodule. --- .github/workflows/build-and-test.yml | 6 +++--- README.md | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 28cf34a..096f3ed 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -35,6 +35,7 @@ jobs: run : | git \ -c submodule."third_party/llvm-project".update=none \ + -c submodule."third_party/stablehlo".update=none \ -c submodule."third_party/torch-mlir".update=none \ submodule update --init --recursive - name: Build sample @@ -81,13 +82,12 @@ jobs: run : | git \ -c submodule."third_party/llvm-project".update=none \ + -c submodule."third_party/stablehlo".update=none \ -c submodule."third_party/torch-mlir".update=none \ submodule update --init --recursive - name: Build sample run: | - cmake -B build/ -G Ninja \ - -DCMAKE_C_COMPILER=clang-10 \ - -DCMAKE_CXX_COMPILER=clang++-10 + cmake -B build/ -G Ninja cmake --build build/ --target hello_world - name: Compile sample module run: | diff --git a/README.md b/README.md index e4f9778..925bca4 100644 --- a/README.md +++ b/README.md @@ -24,13 +24,13 @@ $ git submodule add https://github.com/openxla/iree.git third_party/iree/ $ git submodule update --init --recursive ``` -For a faster checkout the LLVM and torch-mlir dependencies can be dropped as -this template is only compiling the runtime (only bother if optimizing build -bots): +For a faster checkout some compiler-only dependencies can be dropped as this +template is only compiling the runtime (only bother if optimizing build bots): ```sh $ git \ -c submodule."third_party/llvm-project".update=none \ + -c submodule."third_party/stablehlo".update=none \ -c submodule."third_party/torch-mlir".update=none \ submodule update --init --recursive ```