X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/89443fc81cc2c677259ca977b0ee8ffd25174243..e2d3cb7c869ece98836a275af3bafc4fe487e08b:/CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt index acb0f7d8b7..503c71b38e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -179,7 +179,7 @@ if(WIN32) unset(CMAKE_INCLUDE_WIN) endif() -# library dependency cannot start with a space (CMP0004), so initialize it with something that is never desactivated. +# library dependency cannot start with a space (CMP0004), so initialize it with something that is never deactivated. set(SIMGRID_DEP "-lm") ### Determine the assembly flavor that we need today @@ -197,6 +197,8 @@ IF(CMAKE_SYSTEM_PROCESSOR MATCHES ".86|AMD64|amd64") ENDIF() if (WIN32) message(STATUS "Disable fast raw contexts on Windows.") + elseif(CMAKE_SIZEOF_VOID_P EQUAL 4 AND CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64") + message(STATUS "Disable fast raw contexts on x32 ABI.") else() set(HAVE_RAW_CONTEXTS 1) endif() @@ -856,6 +858,13 @@ if(enable_python) LIBRARY_OUTPUT_NAME simgrid CXX_VISIBILITY_PRESET "default" INTERPROCEDURAL_OPTIMIZATION FALSE) + # LTO is disabled here from the python bindings because this makes a + # cmake warning about CMP0069 even when this policy is set. This + # problem may be in cmake, in pybind11 or even in our code, not sure. + # It may get eventually solved in cmake or pybind11. Or not. + # The sure thing is that our python bindings are in one file only, + # so there is no need for LTO here. Problem solved :) + add_dependencies(tests python-bindings) set_property(TARGET python-bindings APPEND PROPERTY INCLUDE_DIRECTORIES "${INTERNAL_INCLUDES}")