From d6865175a73f657336e48557bd670b08743df5a7 Mon Sep 17 00:00:00 2001 From: "Daniel R. Gomez" Date: Mon, 18 Jun 2012 16:19:38 -0400 Subject: [PATCH] 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. --- Tests/Assembler/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Tests/Assembler/CMakeLists.txt b/Tests/Assembler/CMakeLists.txt index ad27e57e9..456e4961f 100644 --- a/Tests/Assembler/CMakeLists.txt +++ b/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")