[LLVMbugs] [Bug 8627] New: CMake breaks in x86_64-pc-win32

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Nov 16 13:52:58 PST 2010


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

           Summary: CMake breaks in x86_64-pc-win32
           Product: Build scripts
           Version: trunk
          Platform: PC
        OS/Version: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: cmake
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: louis.zhuang at acm.org
                CC: llvmbugs at cs.uiuc.edu


CMake failed in Visual Studio 10 Win64 build. Following patch would fix the
issue.

Index: lib/Target/X86/CMakeLists.txt
===================================================================
--- lib/Target/X86/CMakeLists.txt    (revision 119001)
+++ lib/Target/X86/CMakeLists.txt    (working copy)
@@ -42,10 +42,10 @@
   enable_language(ASM_MASM)
   ADD_CUSTOM_COMMAND(
     OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/X86CompilationCallback_Win64.obj
+    MAIN_DEPENDENCY X86CompilationCallback_Win64.asm
     COMMAND ${CMAKE_ASM_MASM_COMPILER} /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)
+   set(sources ${sources} X86CompilationCallback_Win64.asm)
 endif()

 add_llvm_target(X86CodeGen ${sources})

-- 
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