Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
some preprocessor macros to detect which flavor of assembly we want today
authormquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Thu, 9 Dec 2010 13:08:23 +0000 (13:08 +0000)
committermquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Thu, 9 Dec 2010 13:08:23 +0000 (13:08 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@9105 48e7efb5-ca39-0410-a469-dd3cf9ba447f

CMakeLists.txt
buildtools/Cmake/gras_config.h.in

index 0c17810..5dd6466 100644 (file)
@@ -124,6 +124,11 @@ endif(WIN32)
 
 include_directories(${INCLUDES})
 
+
+### Determine the assembly flavor that we need today
+include(CMakeDetermineSystem)
+set(PROCESSOR_${CMAKE_SYSTEM_PROCESSOR} 1)
+
 ### Setup Options
 include(${CMAKE_HOME_DIRECTORY}/buildtools/Cmake/Option.cmake)
 
index 650ca0a..9078297 100644 (file)
 /* Predefined possible va_copy() implementation (id: GCM) */
 #cmakedefine __VA_COPY_USE_GCM(d, s) @__VA_COPY_USE_GCM@
 
+/* Used to select the flavor of assembly that we need today */
+#cmakedefine PROCESSOR_i686 @PROCESSOR_i686@
+#cmakedefine PROCESSOR_x86_64 @PROCESSOR_x86_64@
+#cmakedefine CMAKE_SYSTEM_PROCESSOR @CMAKE_SYSTEM_PROCESSOR@
+
 /* Defined if arrays in struct can straddle struct alignment boundaries. This
    is like than the structure compaction above, but this time, the argument to
    be compacted is an array whom each element would be normally compacted.