Skip to content

Instantly share code, notes, and snippets.

@dakcarto
Last active September 29, 2015 22:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dakcarto/0cc443708487d205254a to your computer and use it in GitHub Desktop.
Save dakcarto/0cc443708487d205254a to your computer and use it in GitHub Desktop.
[ 6%] Building CXX object src/core/CMakeFiles/qgis_core.dir/qgsexpression_texts.cpp.o
cd /Volumes/Scratch/qgis-osgeo4mac/src/core && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -DHAVE_GEOS_CPP -DQGISDEBUG=1 -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_SQL_LIB -DQT_SVG_LIB -DQT_WEBKIT_LIB -DQT_XML_LIB -DWITH_QTWEBKIT -D_HAVE_PTHREAD_ -D_TTY_POSIX_ -Dqgis_core_EXPORTS -Wno-deprecated-declarations -I/usr/local/opt/gettext/include -DSPATIALITE_VERSION_GE_4_0_0 -DSPATIALITE_VERSION_G_4_1_1 -DSPATIALITE_HAS_INIT_EX -std=c++11 -Wno-error=c++11-narrowing -Wall -Wextra -Wno-long-long -Wformat-security -Wno-strict-aliasing -Wno-return-type-c-linkage -Wno-overloaded-virtual -Wno-unused-private-field -Wno-deprecated-register -Qunused-arguments -fvisibility=hidden -fvisibility-inlines-hidden -O2 -g -DNDEBUG -fPIC -isystem /usr/local/Cellar/qt/4.8.7/include -iframework /usr/local/Cellar/qt/4.8.7/lib -isystem /usr/local/Cellar/qt/4.8.7/include/QtSvg -isystem /usr/local/Cellar/qt/4.8.7/include/QtWebKit -isystem /usr/local/Cellar/qt/4.8.7/include/QtGui -isystem /usr/local/Cellar/qt/4.8.7/include/QtXml -isystem /usr/local/Cellar/qt/4.8.7/include/QtSql -isystem /usr/local/Cellar/qt/4.8.7/include/QtNetwork -isystem /usr/local/Cellar/qt/4.8.7/lib/QtCore.framework/Headers -I/Volumes/Scratch/qgis-osgeo4mac -I/Users/larrys/QGIS/github.com/QGIS/src/core -I/Users/larrys/QGIS/github.com/QGIS/src/core/auth -I/Users/larrys/QGIS/github.com/QGIS/src/core/composer -I/Users/larrys/QGIS/github.com/QGIS/src/core/dxf -I/Users/larrys/QGIS/github.com/QGIS/src/core/effects -I/Users/larrys/QGIS/github.com/QGIS/src/core/geometry -I/Users/larrys/QGIS/github.com/QGIS/src/core/layertree -I/Users/larrys/QGIS/github.com/QGIS/src/core/pal -I/Users/larrys/QGIS/github.com/QGIS/src/core/raster -I/Users/larrys/QGIS/github.com/QGIS/src/core/renderer -I/Users/larrys/QGIS/github.com/QGIS/src/core/symbology-ng -I/Users/larrys/QGIS/github.com/QGIS/src/core/gps/qextserialport -I/usr/local/include/spatialindex -I/usr/local/include -I/usr/local/opt/geos/include -I/usr/local/opt/gdal/include -I/usr/local/opt/expat/include -I/usr/local/opt/sqlite/include -I/usr/local/lib/qca.framework/Headers -DCORE_EXPORT= -DGUI_EXPORT= -DPYTHON_EXPORT= -DANALYSIS_EXPORT= -DAPP_EXPORT= -DCUSTOMWIDGETS_EXPORT= -DSERVER_EXPORT= -UCORE_EXPORT "-DCORE_EXPORT=__attribute__ ((visibility (\"default\")))" -DTEST_DATA_DIR="\"/Users/larrys/QGIS/github.com/QGIS/tests/testdata\"" -F/usr/local/lib -O1 -o CMakeFiles/qgis_core.dir/qgsexpression_texts.cpp.o -c /Users/larrys/QGIS/github.com/QGIS/src/core/qgsexpression_texts.cpp
[ 0%] Building CXX object src/core/CMakeFiles/qgis_core.dir/qgsexpression_texts.cpp.o
cd /Volumes/Scratch/qgis-osgeo4mac/src/core && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -DHAVE_GEOS_CPP -DQGISDEBUG=1 -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_SQL_LIB -DQT_SVG_LIB -DQT_WEBKIT_LIB -DQT_XML_LIB -DWITH_QTWEBKIT -D_HAVE_PTHREAD_ -D_TTY_POSIX_ -Dqgis_core_EXPORTS -Wno-deprecated-declarations -I/usr/local/opt/gettext/include -DSPATIALITE_VERSION_GE_4_0_0 -DSPATIALITE_VERSION_G_4_1_1 -DSPATIALITE_HAS_INIT_EX -std=c++11 -Wno-error=c++11-narrowing -Wall -Wextra -Wno-long-long -Wformat-security -Wno-strict-aliasing -Wno-return-type-c-linkage -Wno-overloaded-virtual -Wno-unused-private-field -Wno-deprecated-register -Qunused-arguments -fvisibility=hidden -fvisibility-inlines-hidden -O2 -g -DNDEBUG -fPIC -isystem /usr/local/Cellar/qt/4.8.7/include -iframework /usr/local/Cellar/qt/4.8.7/lib -isystem /usr/local/Cellar/qt/4.8.7/include/QtSvg -isystem /usr/local/Cellar/qt/4.8.7/include/QtWebKit -isystem /usr/local/Cellar/qt/4.8.7/include/QtGui -isystem /usr/local/Cellar/qt/4.8.7/include/QtXml -isystem /usr/local/Cellar/qt/4.8.7/include/QtSql -isystem /usr/local/Cellar/qt/4.8.7/include/QtNetwork -isystem /usr/local/Cellar/qt/4.8.7/lib/QtCore.framework/Headers -I/Volumes/Scratch/qgis-osgeo4mac -I/Users/larrys/QGIS/github.com/QGIS/src/core -I/Users/larrys/QGIS/github.com/QGIS/src/core/auth -I/Users/larrys/QGIS/github.com/QGIS/src/core/composer -I/Users/larrys/QGIS/github.com/QGIS/src/core/dxf -I/Users/larrys/QGIS/github.com/QGIS/src/core/effects -I/Users/larrys/QGIS/github.com/QGIS/src/core/geometry -I/Users/larrys/QGIS/github.com/QGIS/src/core/layertree -I/Users/larrys/QGIS/github.com/QGIS/src/core/pal -I/Users/larrys/QGIS/github.com/QGIS/src/core/raster -I/Users/larrys/QGIS/github.com/QGIS/src/core/renderer -I/Users/larrys/QGIS/github.com/QGIS/src/core/symbology-ng -I/Users/larrys/QGIS/github.com/QGIS/src/core/gps/qextserialport -I/usr/local/include/spatialindex -I/usr/local/include -I/usr/local/opt/geos/include -I/usr/local/opt/gdal/include -I/usr/local/opt/expat/include -I/usr/local/opt/sqlite/include -I/usr/local/lib/qca.framework/Headers -DCORE_EXPORT= -DGUI_EXPORT= -DPYTHON_EXPORT= -DANALYSIS_EXPORT= -DAPP_EXPORT= -DCUSTOMWIDGETS_EXPORT= -DSERVER_EXPORT= -UCORE_EXPORT "-DCORE_EXPORT=__attribute__ ((visibility (\"default\")))" -DTEST_DATA_DIR="\"/Users/larrys/QGIS/github.com/QGIS/tests/testdata\"" -F/usr/local/lib -o CMakeFiles/qgis_core.dir/qgsexpression_texts.cpp.o -c /Users/larrys/QGIS/github.com/QGIS/src/core/qgsexpression_texts.cpp
diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt
index 3f5690c..0cbb97f 100644
--- a/src/core/CMakeLists.txt
+++ b/src/core/CMakeLists.txt
@@ -522,6 +522,9 @@ IF(MSVC)
SET_SOURCE_FILES_PROPERTIES(${QGIS_CORE_MOC_SRCS} PROPERTIES COMPILE_FLAGS "/wd4996" )
ELSE(MSVC)
SET_SOURCE_FILES_PROPERTIES(${QGIS_CORE_MOC_SRCS} PROPERTIES COMPILE_FLAGS "-Wno-deprecated-declarations" )
+ 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_SOURCE_DIR}/qgsexpression_texts.cpp PROPERTIES COMPILE_FLAGS "-O1")
+ ENDIF ()
ENDIF(MSVC)
# install headers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment