View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0010577CMakeCMakepublic2010-04-20 03:452010-05-12 16:06
Reportertisi 
Assigned ToAlex Neundorf 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product VersionCMake-2-8 
Target VersionFixed in Version 
Summary0010577: Initial ASM-Flags don't work
DescriptionI've found this bug when i wanted to add an additional assembler, which needs always a flag to specify the target cpu.

When i set an initial flag within the CMAKE_ASM<DIALECT>_FLAGS_INIT Variable, the flag isn't used while assembling.

This is also true for CMAKE_ASM<DIALECT>_FLAGS_DEBUG_INIT, CMAKE_ASM<DIALECT>_FLAGS_RELEASE_INIT etc.
Additional InformationI've uploaded an example, which uses the gnu assembler. It doesn't link correctly on my machine, but that's not the problem (it's just an example). The problem is within the flags, when the gnu assembler is executed.

I've specified following initial flag (see in the Plattform directory):

SET(CMAKE_ASM${ASM_DIALECT}_FLAGS_INIT -mtune=i386)

After generating the Makefiles, I've executed make VERBOSE=1.
The assembler is executed as follows:

/c/Projekte/Tools/MinGW/3.4.5/bin/as.exe -o CMakeFiles/hello.dir/hello.s.obj /C/Projekte/CMakeAsmFlag/hello.s

So there is no -mtune=i386 flag there as expected.

I'm using MSYS Makefile Generator, but i think, this should occur also within other generators.


TagsNo tags attached.
Attached Fileszip file icon CMakeAsmFlag.zip [^] (1,311 bytes) 2010-04-20 03:45

 Relationships

  Notes
(0020726)
Alex Neundorf (developer)
2010-05-12 16:06

Thanks for the attached example.
I was able to reproduce it.
This feature was simply not yet implemented.
It is now, and I pushed it to git master.
If it still doesn't work for you, please reopen this bug report.

Alex

 Issue History
Date Modified Username Field Change
2010-04-20 03:45 tisi New Issue
2010-04-20 03:45 tisi File Added: CMakeAsmFlag.zip
2010-04-20 15:50 Alex Neundorf Status new => assigned
2010-04-20 15:50 Alex Neundorf Assigned To => Alex Neundorf
2010-05-12 16:06 Alex Neundorf Note Added: 0020726
2010-05-12 16:06 Alex Neundorf Status assigned => closed
2010-05-12 16:06 Alex Neundorf Resolution open => fixed


Copyright © 2000 - 2018 MantisBT Team