diff options
author | Oscar Fuentes <ofv@wanadoo.es> | 2010-05-13 19:34:06 +0000 |
---|---|---|
committer | Oscar Fuentes <ofv@wanadoo.es> | 2010-05-13 19:34:06 +0000 |
commit | ed36aac081e515568838c5ba5ca5222a1087482c (patch) | |
tree | 9a50a3f225833b86a0ab66575dd967b268174ea8 /lib/Target/X86/CMakeLists.txt | |
parent | 49b4589978ca181537c8ae694ac4c8d58d27a09a (diff) | |
download | external_llvm-ed36aac081e515568838c5ba5ca5222a1087482c.zip external_llvm-ed36aac081e515568838c5ba5ca5222a1087482c.tar.gz external_llvm-ed36aac081e515568838c5ba5ca5222a1087482c.tar.bz2 |
CMake: fixes 64 bit Visual Studio IDE build. Fixes bug 4936.
Patch by Dimitry Andric!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103727 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/CMakeLists.txt')
-rw-r--r-- | lib/Target/X86/CMakeLists.txt | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/Target/X86/CMakeLists.txt b/lib/Target/X86/CMakeLists.txt index da6bb91..1334820 100644 --- a/lib/Target/X86/CMakeLists.txt +++ b/lib/Target/X86/CMakeLists.txt @@ -39,7 +39,12 @@ set(sources if( CMAKE_CL_64 ) enable_language(ASM_MASM) - set(sources ${sources} X86CompilationCallback_Win64.asm) + ADD_CUSTOM_COMMAND( + OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/X86CompilationCallback_Win64.obj + 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) endif() add_llvm_target(X86CodeGen ${sources}) |