Skip to content

Commit 200fca6

Browse files
committed
WIP: Inspect CMAKE_HOST_WIN32, stop setting CMAKE_SYSROOT
1 parent 66766bf commit 200fca6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wrappers/llvm-mingw_toolchainfile.cmake.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,12 @@ elseif(NOT CMAKE_SYSTEM_PROCESSOR)
4040
endif()
4141

4242
set(_sysroot "${_prefix}${CMAKE_SYSTEM_PROCESSOR}-w64-mingw32")
43+
message("CMAKE_HOST_WIN32 ${CMAKE_HOST_WIN32}")
4344
if(NOT CMAKE_HOST_WIN32)
4445
# Not setting CMAKE_SYSROOT on Windows. In the case of toolchains on
4546
# Windows, the headers are in ${_prefix}include (and not symlinked into
4647
# ${_sysroot}include), and won't be found if we pass the sysroot parameter
4748
# to the compiler.
48-
set(CMAKE_SYSROOT "${_sysroot}")
4949
endif()
5050

5151
# cmake-style list of paths

0 commit comments

Comments
 (0)