Tests/Assembler: Assemble and link with same flags (#13314)
The test uses the C compiler as the assembler so use the C flags for ASM too. This is important when the flags specify the target ABI.
This commit is contained in:
parent
b39924cf22
commit
d6865175a7
|
@ -23,6 +23,7 @@ endif("${CMAKE_GENERATOR}" MATCHES "Makefile")
|
|||
|
||||
|
||||
if(SRCS)
|
||||
set(CMAKE_ASM_FLAGS "${CMAKE_C_FLAGS}")
|
||||
enable_language(ASM OPTIONAL)
|
||||
else(SRCS)
|
||||
message(STATUS "No assembler enabled, using C")
|
||||
|
|
Loading…
Reference in New Issue