[LLVMbugs] [Bug 4936] New: Win64 visual studio build does not compile ASM correctly
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Wed Sep 9 09:11:05 PDT 2009
http://llvm.org/bugs/show_bug.cgi?id=4936
Summary: Win64 visual studio build does not compile ASM correctly
Product: new-bugs
Version: trunk
Platform: PC
OS/Version: Windows NT
Status: NEW
Severity: normal
Priority: P2
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: gareth_morgan77 at hotmail.com
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=3487)
--> (http://llvm.org/bugs/attachment.cgi?id=3487)
Working cmake file
The visual studio files generated by cmake will not compile
X86CompilationCallback_Win64.asm correctly. To get this to work I had to add
the following code to lib\Target\X86\CMakeLists.txt (full file attached):
if( CMAKE_CL_64 )
enable_language(ASM_MASM)
ADD_CUSTOM_COMMAND(
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/X86CompilationCallback_Win64.obj
COMMAND "C:/Program Files (x86)/Microsoft Visual Studio
9.0/VC/bin/amd64/ml64" /Fo
${CMAKE_CURRENT_BINARY_DIR}/X86CompilationCallback_Win64.obj /c
${CMAKE_CURRENT_SOURCE_DIR}/X86CompilationCallback_Win64.asm
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/X86CompilationCallback_Win64.asm
)
set(sources ${sources}
${CMAKE_CURRENT_BINARY_DIR}/X86CompilationCallback_Win64.obj)
endif()
I suspect the issue is with the Cmake system, not our the LLVM code.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list