set(LIB_EXE "so")
endif()
-execute_process(COMMAND ${CMAKE_LINKER} -version OUTPUT_VARIABLE LINKER_VERSION ERROR_VARIABLE LINKER_VERSION)
+execute_process(COMMAND ${CMAKE_LINKER} -v OUTPUT_VARIABLE LINKER_VERSION ERROR_VARIABLE LINKER_VERSION)
string(REGEX MATCH "[0-9].[0-9]*" LINKER_VERSION "${LINKER_VERSION}")
### Find programs and paths
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()
target_link_libraries(python-bindings PUBLIC simgrid)
set_target_properties(python-bindings PROPERTIES
LIBRARY_OUTPUT_NAME simgrid
- CXX_VISIBILITY_PRESET "default")
+ 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}")