Browse Source

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.
Daniel R. Gomez 13 years ago
parent
commit
d6865175a7
1 changed files with 1 additions and 0 deletions
  1. 1 0
      Tests/Assembler/CMakeLists.txt

+ 1 - 0
Tests/Assembler/CMakeLists.txt

@@ -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")