Skip to content
Permalink
Browse files
disable inline on macOS release on clang12 (#43558)
* disable inline on macOS release on clang12

* fix inline-treshold compile flag
  • Loading branch information
PeterPetrik committed Jun 7, 2021
1 parent ef526bb commit cc0d9b199ee7433c24558cf467412e04f1a729af
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/CMakeLists.txt
@@ -1698,7 +1698,7 @@ endif()
if(NOT MSVC)
if ("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang" AND (CMAKE_BUILD_TYPE MATCHES Release OR CMAKE_BUILD_TYPE MATCHES RelWithDebInfo))
set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/qgsexpression_texts.cpp PROPERTIES COMPILE_FLAGS "-O1")
set_source_files_properties(qgscoordinatereferencesystem.cpp PROPERTIES COMPILE_FLAGS "-mllvm -inline-threshold=128")
set_source_files_properties(proj/qgscoordinatereferencesystem.cpp PROPERTIES COMPILE_FLAGS "-mllvm -inline-threshold=128")
endif()
endif()

0 comments on commit cc0d9b1

Please sign in to comment.