Merge topic 'xcode-asm'
97140d3
Tests/Assembler: Do not use assembler in universal binariesf3477ed
Xcode: Set ASM source language in project file (#13472)
This commit is contained in:
commit
b7f3cc22c3
|
@ -787,6 +787,10 @@ GetSourcecodeValueFromFileExtension(const std::string& _ext,
|
||||||
{
|
{
|
||||||
sourcecode += ".fortran.f90";
|
sourcecode += ".fortran.f90";
|
||||||
}
|
}
|
||||||
|
else if(lang == "ASM")
|
||||||
|
{
|
||||||
|
sourcecode += ".asm";
|
||||||
|
}
|
||||||
//else
|
//else
|
||||||
// {
|
// {
|
||||||
// // Already specialized above or we leave sourcecode == "sourcecode"
|
// // Already specialized above or we leave sourcecode == "sourcecode"
|
||||||
|
|
|
@ -7,7 +7,8 @@ set(SRCS)
|
||||||
|
|
||||||
# (at least) the following toolchains can process assembler files directly
|
# (at least) the following toolchains can process assembler files directly
|
||||||
# and also generate assembler files from C:
|
# and also generate assembler files from C:
|
||||||
if("${CMAKE_GENERATOR}" MATCHES "Makefile")
|
if("${CMAKE_GENERATOR}" MATCHES "Makefile|Xcode" AND
|
||||||
|
NOT CMAKE_OSX_ARCHITECTURES)
|
||||||
if(("${CMAKE_C_COMPILER_ID}" MATCHES "^(GNU|Clang|HP|SunPro|XL)$") OR ("${CMAKE_C_COMPILER_ID}" STREQUAL "Intel" AND UNIX))
|
if(("${CMAKE_C_COMPILER_ID}" MATCHES "^(GNU|Clang|HP|SunPro|XL)$") OR ("${CMAKE_C_COMPILER_ID}" STREQUAL "Intel" AND UNIX))
|
||||||
set(C_FLAGS "${CMAKE_C_FLAGS}")
|
set(C_FLAGS "${CMAKE_C_FLAGS}")
|
||||||
separate_arguments(C_FLAGS)
|
separate_arguments(C_FLAGS)
|
||||||
|
|
Loading…
Reference in New Issue