Open ScottTodd opened 4 months ago
I suspect because it's using the MSVC CRT - we probably need to force it to use compiler-rt as built with our clang build.
I looked a bit for culprit commits but there are 400 LLVM commits in the range and a search through relevant directories didn't show anything obvious. Leaning towards disabling the sample on Windows for now to keep local builds more stable.
Possibly https://github.com/llvm/llvm-project/commit/dad7442aff5c85ff9141b0d0f231bcd731cbadc6 (if we use compiler-rt
here)
seems likely - unfortunate but not unexpected that things would break (in that, I don't know if an issue was filed if it'd get fixed). getting on compiler-rt for sample artifacts would insulate us from issues like this.
-isystem ${IREE_CLANG_BUILTIN_HEADERS_PATH}
is what we use in the samples/custom_dispatch/cpu/embedded/
and iree_bitcode_library
and may be enough.
What happened?
I hit an error building https://github.com/iree-org/iree/blob/main/samples/custom_dispatch/cuda/kernels/CMakeLists.txt on my Windows machine after a recent update to our LLVM submodule.
Steps to reproduce your issue
all
CMake target with-DIREE_BUILD_SAMPLES=ON
setWhat component(s) does this issue relate to?
No response
Version information
First observed at https://github.com/iree-org/iree/commit/30e2c203ca2c4368a6812eeec41e95b43c777c34 . This does not occur at the prior commit (https://github.com/iree-org/iree/commit/3dffadbc0b8a37ab170a61eddb3131c8cbd8c2b2)
Additional context
No response