Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[TEST] Fix compilation with llvm > 6 (and arch=i386)
Follow up https://www.mail-archive.com/qgis-developer@lists.osgeo.org/msg47062.html discussion

I will test (for build time) this method `"-mllvm -inline-threshold=128"` , and \"-O1"\ in another one.

cc @m-kuhn @rhurlin @landryb
  • Loading branch information
lbartoletti committed Nov 12, 2019
1 parent 461d2ed commit 5ad7f64
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/CMakeLists.txt
Expand Up @@ -1268,6 +1268,7 @@ ENDIF (HAVE_OPENCL)
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")
ENDIF ()
ENDIF(NOT MSVC)

Expand Down

0 comments on commit 5ad7f64

Please sign in to comment.