[all] Build all release builds with -Os
This commit is contained in:
@@ -66,6 +66,7 @@ if(APPLE)
|
||||
# -Wno-error=unused-command-line-argument is required due to https://llvm.org/bugs/show_bug.cgi?id=7798
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-error=unused-command-line-argument")
|
||||
endif()
|
||||
set(CMAKE_CXX_FLAGS_RELEASE "-Os -DNDEBUG")
|
||||
|
||||
if(CMAKE_COMPILER_IS_GNUCXX)
|
||||
# https://svn.boost.org/trac/boost/ticket/9240
|
||||
|
||||
@@ -218,7 +218,6 @@ macro(mbgl_platform_core)
|
||||
PRIVATE -fvisibility=hidden
|
||||
PRIVATE -ffunction-sections
|
||||
PRIVATE -fdata-sections
|
||||
PRIVATE -Os
|
||||
)
|
||||
|
||||
target_link_libraries(mbgl-core
|
||||
@@ -244,7 +243,6 @@ target_compile_options(mapbox-gl
|
||||
PRIVATE -fvisibility=hidden
|
||||
PRIVATE -ffunction-sections
|
||||
PRIVATE -fdata-sections
|
||||
PRIVATE -Os
|
||||
)
|
||||
|
||||
target_link_libraries(mapbox-gl
|
||||
@@ -285,7 +283,6 @@ target_sources(mbgl-test
|
||||
|
||||
target_compile_options(mbgl-test
|
||||
PRIVATE -fvisibility=hidden
|
||||
PRIVATE -Os
|
||||
)
|
||||
|
||||
target_compile_definitions(mbgl-test
|
||||
@@ -329,7 +326,6 @@ target_compile_options(example-custom-layer
|
||||
PRIVATE -fvisibility=hidden
|
||||
PRIVATE -ffunction-sections
|
||||
PRIVATE -fdata-sections
|
||||
PRIVATE -Os
|
||||
)
|
||||
|
||||
target_link_libraries(example-custom-layer
|
||||
|
||||
Reference in New Issue
Block a user