mirror of
https://github.com/reactos/CMake.git
synced 2024-11-29 14:30:27 +00:00
4b40d4297a
This commit changes the way how the assembler support works in cmake. The language "ASM" now always uses the C/Cxx compiler instead of the assembler directly. This fixes #8392, assembler files are not preprocessed. If one wants to use the assembler directly, the specific assembler "dialect" has to be enabled. I.e. to get as/gas, you have to use now ASM-ATT, the same way for ASM_MASM and ASM_NASM. Implemented this now for gcc. SunStudio, IBM, HP and Intel still todo. Alex
13 lines
545 B
CMake
13 lines
545 B
CMake
SET(CMAKE_ASM@ASM_DIALECT@_COMPILER "@_CMAKE_ASM_COMPILER@")
|
|
SET(CMAKE_ASM@ASM_DIALECT@_COMPILER_ARG1 "@_CMAKE_ASM_COMPILER_ARG1@")
|
|
SET(CMAKE_AR "@CMAKE_AR@")
|
|
SET(CMAKE_RANLIB "@CMAKE_RANLIB@")
|
|
SET(CMAKE_LINKER "@CMAKE_LINKER@")
|
|
SET(CMAKE_ASM@ASM_DIALECT@_COMPILER_LOADED 1)
|
|
SET(CMAKE_ASM@ASM_DIALECT@_COMPILER_ID "@_CMAKE_ASM_COMPILER_ID@")
|
|
SET(CMAKE_ASM@ASM_DIALECT@_COMPILER_ENV_VAR "@_CMAKE_ASM_COMPILER_ENV_VAR@")
|
|
|
|
SET(CMAKE_ASM@ASM_DIALECT@_IGNORE_EXTENSIONS h;H;o;O;obj;OBJ;def;DEF;rc;RC)
|
|
SET(CMAKE_ASM@ASM_DIALECT@_LINKER_PREFERENCE 0)
|
|
|