Add to the list of cmake files the object file, not the asm file. This
authorOscar Fuentes <ofv@wanadoo.es>
Fri, 31 Dec 2010 20:15:37 +0000 (20:15 +0000)
committerOscar Fuentes <ofv@wanadoo.es>
Fri, 31 Dec 2010 20:15:37 +0000 (20:15 +0000)
is necessary for executing the custom command that runs the
assember. Fixes PR8877.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122649 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/CMakeLists.txt

index e62dfca491d95eb488b017fddb2aa22b7e3e9c34..036dbcda2147b05c0a146fce2744a3d4fbbc0599 100644 (file)
@@ -47,7 +47,7 @@ if( CMAKE_CL_64 )
     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
    )
-   set(sources ${sources} X86CompilationCallback_Win64.asm)
+   set(sources ${sources} ${CMAKE_CURRENT_BINARY_DIR}/X86CompilationCallback_Win64.obj)
 endif()
 
 add_llvm_target(X86CodeGen ${sources})