Fix boost flags, enable LTO

This commit is contained in:
Jason Rhinelander 2020-10-14 23:04:53 -03:00
parent c4134a589e
commit 026086613a
2 changed files with 2 additions and 2 deletions

View File

@ -156,7 +156,7 @@ local static_build_deps='autoconf automake make qttools5-dev file libtool gperf
// Macos builds:
mac_builder('macOS (Static)', cmake_extra='-DBUILD_STATIC_DEPS=ON -DCMAKE_OSX_DEPLOYMENT_TARGET=10.14 -DARCH=core2 -DARCH_ID=amd64',
build_tests=false, extra_cmds=static_check_and_upload),
build_tests=false, extra_cmds=static_check_and_upload, lto=true),
mac_builder('macOS (Release)', run_tests=true),
mac_builder('macOS (Debug)', build_type='Debug', cmake_extra='-DBUILD_DEBUG_UTILS=ON'),
]

View File

@ -307,7 +307,7 @@ endif()
set(boost_buildflags "cxxflags=-fPIC")
if(APPLE)
set(boost_buildflags "cxxflags=\"-fPIC -mmacosx-version-min=${CMAKE_OSX_DEPLOYMENT_TARGET}\"" "cflags=-mmacosx-version-min=${CMAKE_OSX_DEPLOYMENT_TARGET}")
set(boost_buildflags "cxxflags=-fPIC -mmacosx-version-min=${CMAKE_OSX_DEPLOYMENT_TARGET}" "cflags=-mmacosx-version-min=${CMAKE_OSX_DEPLOYMENT_TARGET}")
endif()
build_external(boost