Skip to content

Commit c78c5c0

Browse files
cyx-6claude
andcommitted
[FIX] Use Visual Studio generator for MSVC/clang-cl test object builds
cibuildwheel's Windows env uses MinGW by default, so cl.exe and clang-cl are not on PATH. Use the Visual Studio 17 2022 generator (which auto-detects MSVC) and -T ClangCL toolset for clang-cl. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 4ee9e13 commit c78c5c0

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/orcjit-build.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -100,14 +100,14 @@ jobs:
100100
cmake -B build -G Ninja -DCMAKE_BUILD_TYPE=Release -DPython_EXECUTABLE=%PYTHON% &&
101101
cmake --build build &&
102102
cmake --install build &&
103-
cmake -B build-msvc -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=cl
103+
cmake -B build-msvc -G "Visual Studio 17 2022"
104104
-DTEST_OBJ_INSTALL_SUFFIX=-msvc -DPython_EXECUTABLE=%PYTHON% &&
105-
cmake --build build-msvc &&
106-
cmake --install build-msvc &&
107-
cmake -B build-clangcl -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=clang-cl
105+
cmake --build build-msvc --config Release &&
106+
cmake --install build-msvc --config Release &&
107+
cmake -B build-clangcl -G "Visual Studio 17 2022" -T ClangCL
108108
-DTEST_OBJ_INSTALL_SUFFIX=-clang-cl -DPython_EXECUTABLE=%PYTHON% &&
109-
cmake --build build-clangcl &&
110-
cmake --install build-clangcl &&
109+
cmake --build build-clangcl --config Release &&
110+
cmake --install build-clangcl --config Release &&
111111
popd &&
112112
pushd {project}\addons\tvm-ffi-orcjit\examples\quick-start &&
113113
cmake -B build -G Ninja -DCMAKE_BUILD_TYPE=Release -DPython_EXECUTABLE=%PYTHON% &&

0 commit comments

Comments
 (0)