[commit] r2187 - change VM_HOST_CPU to i386 if compiling on x86_64 with -m32

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

[commit] r2187 - change VM_HOST_CPU to i386 if compiling on x86_64 with -m32

commits-3
 
Author: piumarta
Date: 2010-04-10 20:15:36 -0700 (Sat, 10 Apr 2010)
New Revision: 2187

Modified:
   trunk/platforms/unix/CMakeLists.txt
Log:
change VM_HOST_CPU to i386 if compiling on x86_64 with -m32

Modified: trunk/platforms/unix/CMakeLists.txt
===================================================================
--- trunk/platforms/unix/CMakeLists.txt 2010-04-11 03:14:15 UTC (rev 2186)
+++ trunk/platforms/unix/CMakeLists.txt 2010-04-11 03:15:36 UTC (rev 2187)
@@ -1,6 +1,6 @@
 # Yes, it's true: you can write makefiles in COBOL.
 #
-# Last edited: 2010-04-01 19:47:10 by piumarta on ubuntu
+# Last edited: 2010-04-09 04:23:35 by piumarta on ubuntu
 
 PROJECT (squeak)
 
@@ -67,6 +67,12 @@
   SET (CMAKE_C_FLAGS "${OPT--CFLAGS}")
 ENDIF ()
 
+IF (CMAKE_ARCH_FLAGS STREQUAL "-m32")
+  IF (VM_HOST_CPU STREQUAL "x86_64")
+    SET (VM_HOST_CPU "i386")
+  ENDIF ()
+ENDIF ()
+
 IF (NOT CMAKE_C_FLAGS)
   IF (CMAKE_COMPILER_IS_GNUCC)
     IF     (VM_HOST_CPU MATCHES "i.86")