From f107b63fca1bd617a106e3cc7e86b337151bff79 Mon Sep 17 00:00:00 2001 From: yowl Date: Sun, 14 May 2023 00:56:01 -0500 Subject: [PATCH] For Wasi build on windows, do not set CLR_CMAKE_TARGET_WIN32 (#86208) Co-authored-by: Jan Kotas --- eng/native/configureplatform.cmake | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/eng/native/configureplatform.cmake b/eng/native/configureplatform.cmake index 192e3a3..2c47709 100644 --- a/eng/native/configureplatform.cmake +++ b/eng/native/configureplatform.cmake @@ -461,10 +461,12 @@ if(CLR_CMAKE_TARGET_UNIX) else() clr_unknown_arch() endif() -else() - set(CLR_CMAKE_TARGET_WIN32 1) endif(CLR_CMAKE_TARGET_UNIX) +if(CLR_CMAKE_TARGET_OS STREQUAL windows) + set(CLR_CMAKE_TARGET_WIN32 1) +endif() + # check if host & target os/arch combination are valid if (NOT (CLR_CMAKE_TARGET_OS STREQUAL CLR_CMAKE_HOST_OS) AND NOT CLR_CMAKE_TARGET_WASI) if(NOT (CLR_CMAKE_HOST_OS STREQUAL windows)) -- 2.7.4