[llvm-commits] [llvm] r122649 - /llvm/trunk/lib/Target/X86/CMakeLists.txt

Oscar Fuentes ofv at wanadoo.es
Fri Dec 31 12:15:37 PST 2010


Author: ofv
Date: Fri Dec 31 14:15:37 2010
New Revision: 122649

URL: http://llvm.org/viewvc/llvm-project?rev=122649&view=rev
Log:
Add to the list of cmake files the object file, not the asm file. This
is necessary for executing the custom command that runs the
assember. Fixes PR8877.

Modified:
    llvm/trunk/lib/Target/X86/CMakeLists.txt

Modified: llvm/trunk/lib/Target/X86/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/CMakeLists.txt?rev=122649&r1=122648&r2=122649&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/CMakeLists.txt (original)
+++ llvm/trunk/lib/Target/X86/CMakeLists.txt Fri Dec 31 14:15:37 2010
@@ -47,7 +47,7 @@
     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})





More information about the llvm-commits mailing list