MantisBT - CMake
View Issue Details
0009905CMakeCMakepublic2009-11-16 11:532013-08-06 17:42
Matthäus G. Chajdas 
 
normalminoralways
closedduplicate 
CMake-2-8 
CMake 2.8.12 
0009905: Support for .asm files in the Visual Studio generators
LLVM 2.6 has an .asm file in it's source tree (project: lib\Target\X86, LLVMX86CodeGen). The generated project files for VS2008/x64 try to compile this file with cl, which does not work.

The project file contains:

if( CMAKE_CL_64 )
  enable_language(ASM_MASM)
  set(sources ${sources} X86CompilationCallback_Win64.asm)
endif()

This should be the correct setup. It supposedly works on x86 (didn't try myself.)
Changing it manually to use ml64 -c $(InputPath) and setting the output to X86CompilationCallback_Win64.obj fixes the issue.
No tags attached.
related to 0008170closed  Visual Studio 9 generator does not output Custom Build Tool command line for assembler sources 
related to 0011536closed Patrick R. Gansterer Can't use assembler files with Visual Studio 10 generator 
Issue History
2009-11-16 11:53Matthäus G. ChajdasNew Issue
2009-11-19 16:36Alex NeundorfStatusnew => assigned
2009-11-19 16:36Alex NeundorfAssigned To => Alex Neundorf
2009-11-22 05:10Alex NeundorfNote Added: 0018514
2009-12-08 16:27Matthäus G. ChajdasNote Added: 0018726
2009-12-09 15:13Alex NeundorfNote Added: 0018748
2009-12-09 15:14Alex NeundorfAssigned ToAlex Neundorf =>
2009-12-09 15:14Alex NeundorfSummary.asm files are not built using ml64 with VS2008/x64, but with cl => Support for .asm files in the Visual Studio generators
2010-02-23 16:45Brian BassettNote Added: 0019601
2010-12-15 09:03David ColeAssigned To => Bill Hoffman
2010-12-15 09:04David ColeRelationship addedrelated to 0008170
2011-03-10 15:05Alex NeundorfRelationship addedrelated to 0011536
2011-04-14 14:29David ColeTarget Version => CMake 2.8.5
2011-05-25 17:00David ColeNote Added: 0026594
2011-05-25 17:00David ColeTarget VersionCMake 2.8.5 =>
2012-08-20 11:50David ColeAssigned ToBill Hoffman =>
2012-08-20 11:50David ColeStatusassigned => new
2012-08-20 11:50David ColeTarget Version => CMake 2.8.10
2012-10-18 11:16David ColeTarget VersionCMake 2.8.10 => CMake 2.8.11
2012-10-18 11:17David ColeNote Added: 0031260
2012-10-26 16:02viktor11111Note Added: 0031343
2012-10-26 16:02viktor11111Note Edited: 0031343bug_revision_view_page.php?bugnote_id=31343#r882
2012-10-26 16:03viktor11111Note Edited: 0031343bug_revision_view_page.php?bugnote_id=31343#r883
2013-05-17 09:33Robert MaynardTarget VersionCMake 2.8.11 => CMake 2.8.12
2013-08-06 17:42Patrick R. GanstererNote Added: 0033675
2013-08-06 17:42Patrick R. GanstererStatusnew => closed
2013-08-06 17:42Patrick R. GanstererResolutionopen => duplicate

Notes
(0018514)
Alex Neundorf   
2009-11-22 05:10   
Does it work if you use nmake Makefiles instead of the Visual Studio project ?

Alex
(0018726)
Matthäus G. Chajdas   
2009-12-08 16:27   
Yes, it works using nmake -- just tried it, compiles fine.
(0018748)
Alex Neundorf   
2009-12-09 15:13   
Ok, so the issue is actually support for assembler files in the Visual Studio generators.
(0019601)
Brian Bassett   
2010-02-23 16:45   
I just attached a patch for this bug to bug report 0008170.
(0026594)
David Cole   
2011-05-25 17:00   
Not for 2.8.5 - postponing until a future release
(0031260)
David Cole   
2012-10-18 11:17   
These bugs were deferred from target version 2.8.10 to 2.8.11 based on the responses to this email thread on the CMake developer's mailing list:

  http://public.kitware.com/pipermail/cmake-developers/2012-October/005434.html [^]
(0031343)
viktor11111   
2012-10-26 16:02   
(edited on: 2012-10-26 16:03)
I just attached a patch for this bug to bug report http://www.cmake.org/Bug/view.php?id=8170#c31337 [^]

(0033675)
Patrick R. Gansterer   
2013-08-06 17:42   
VS10 support has been added in bug 11536 and the missing support for the other VS versions is tracked at bug 8170.