Cmake and assembler

Hi all,

Anyone managed to build Clang x64 in Visual Studio?

It seems that Cmake can't properly determine host assembler - I get
    CMAKE_ASM_MASM_COMPILER:FILEPATH=CMAKE_ASM_MASM_COMPILER-NOTFOUND
in CMakeCache.txt which causes failures when compiling
X86CompilationCallback_Win64.asm (see
http://comments.gmane.org/gmane.comp.programming.tools.cmake.user/35420
for more details).

Perhaps I will be more lucky with nmake Makefiles...

Best regards,
Yuri

Yuri Gribov <tetra2005@googlemail.com> writes:

Anyone managed to build Clang x64 in Visual Studio?

It seems that Cmake can't properly determine host assembler - I get
    CMAKE_ASM_MASM_COMPILER:FILEPATH=CMAKE_ASM_MASM_COMPILER-NOTFOUND
in CMakeCache.txt which causes failures when compiling
X86CompilationCallback_Win64.asm (see
http://comments.gmane.org/gmane.comp.programming.tools.cmake.user/35420
for more details).

This is an old problem with cmake support for masm on x64. I thought it
was fixed. Several times, actually:

http://www.llvm.org/bugs/show_bug.cgi?id=4936
http://www.llvm.org/bugs/show_bug.cgi?id=8627

Perhaps I will be more lucky with nmake Makefiles...

Yes, I recall building LLVM with VS on X64 using nmake makefiles.