Skip to content

Commit 3aedb4b

Browse files
committed
[CMAKE] Fix compiling 32-bit targets on 64-bit clang-cl
With help of @tkreuzer and @julenuri I got x86_64-pc-windows-msvc flavor of LLVM 13.0.1 compiling 32-bit ReactOS.
1 parent b114e3a commit 3aedb4b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

toolchain-msvc.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ if(USE_CLANG_CL)
3939
set(CMAKE_C_COMPILER_TARGET "arm64-pc-windows-msvc")
4040
set(CMAKE_CXX_COMPILER_TARGET "arm64-pc-windows-msvc")
4141
else()
42+
set(CMAKE_C_FLAGS "-m32")
43+
set(CMAKE_CXX_FLAGS "-m32")
4244
set(CMAKE_C_COMPILER_TARGET "i686-pc-windows-msvc")
4345
set(CMAKE_CXX_COMPILER_TARGET "i686-pc-windows-msvc")
4446
endif()

0 commit comments

Comments
 (0)