File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -240,6 +240,7 @@ set(CMAKE_C_COMPILER "${LLVM_NATIVE_TOOLCHAIN}/bin/clang-cl" CACHE FILEPATH "")
240
240
set (CMAKE_CXX_COMPILER "${LLVM_NATIVE_TOOLCHAIN} /bin/clang-cl" CACHE FILEPATH "" )
241
241
set (CMAKE_LINKER "${LLVM_NATIVE_TOOLCHAIN} /bin/lld-link" CACHE FILEPATH "" )
242
242
set (CMAKE_AR "${LLVM_NATIVE_TOOLCHAIN} /bin/llvm-lib" CACHE FILEPATH "" )
243
+ set (CMAKE_ASM_MASM_COMPILER "${LLVM_NATIVE_TOOLCHAIN} /bin/llvm-ml" CACHE FILEPATH "" )
243
244
244
245
# Even though we're cross-compiling, we need some native tools (e.g. llvm-tblgen), and those
245
246
# native tools have to be built before we can start doing the cross-build. LLVM supports
@@ -275,6 +276,9 @@ endif()
275
276
string (REPLACE ";" " " COMPILE_FLAGS "${COMPILE_FLAGS} " )
276
277
string (APPEND CMAKE_C_FLAGS_INIT " ${COMPILE_FLAGS} " )
277
278
string (APPEND CMAKE_CXX_FLAGS_INIT " ${COMPILE_FLAGS} " )
279
+ if (TRIPLE_ARCH STREQUAL "x86_64" )
280
+ string (APPEND CMAKE_ASM_MASM_FLAGS_INIT " -m64" )
281
+ endif ()
278
282
279
283
set (LINK_FLAGS
280
284
# Prevent CMake from attempting to invoke mt.exe. It only recognizes the slashed form and not the dashed form.
You can’t perform that action at this time.
0 commit comments