[commit] r2165 - Pass C_FLAGS to ASM_COMPILER when using gcc as assembler.

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[commit] r2165 - Pass C_FLAGS to ASM_COMPILER when using gcc as assembler.

commits-3
 
Author: piumarta
Date: 2010-04-01 19:57:25 -0700 (Thu, 01 Apr 2010)
New Revision: 2165

Modified:
   trunk/platforms/unix/plugins/SqueakFFIPrims/config.cmake
Log:
Pass C_FLAGS to ASM_COMPILER when using gcc as assembler.

Modified: trunk/platforms/unix/plugins/SqueakFFIPrims/config.cmake
===================================================================
--- trunk/platforms/unix/plugins/SqueakFFIPrims/config.cmake 2010-04-02 02:55:51 UTC (rev 2164)
+++ trunk/platforms/unix/plugins/SqueakFFIPrims/config.cmake 2010-04-02 02:57:25 UTC (rev 2165)
@@ -47,7 +47,7 @@
   PLUGIN_SOURCES ("${SQFFIC} ${unix}/plugins/${plugin}/${cpu}-${abi}.c ${unix}/plugins/${plugin}/${cpu}-${abi}-asm.S")
   IF (CMAKE_COMPILER_IS_GNUCC)
     SET (CMAKE_ASM_COMPILER "${CMAKE_C_COMPILER}")
-    SET (CMAKE_ASM_COMPILER_ARG1 "-c")
+    SET (CMAKE_ASM_FLAGS "${CMAKE_C_FLAGS} -c")
   ENDIF (CMAKE_COMPILER_IS_GNUCC)
 ENDIF ()