Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 cc0d9b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/CMakeLists.txt
Expand Up @@ -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()

Expand Down

0 comments on commit cc0d9b1

Please sign in to comment.