OSX-related CMakeLists maintenance (#1750)
Disable release binary stripping on OSX: The linker of OSX does not support `-s` for link-time stripping. (The option does not cause an error but clutters build output with warnings.) No OSX-dependent LTO flags: LTO is disabled on OSX. JerryScript-DCO-1.0-Signed-off-by: Akos Kiss akiss@inf.u-szeged.hu
This commit is contained in:
+6
-7
@@ -41,11 +41,12 @@ if(NOT CMAKE_BUILD_TYPE)
|
||||
endif()
|
||||
|
||||
if("${PLATFORM}" STREQUAL "DARWIN")
|
||||
set(ENABLE_LTO "OFF")
|
||||
set(ENABLE_ALL_IN_ONE "ON")
|
||||
set(JERRY_LIBC "OFF")
|
||||
set(JERRY_LIBM "OFF")
|
||||
set(JERRY_LIBC "OFF")
|
||||
set(JERRY_LIBM "OFF")
|
||||
set(ENABLE_ALL_IN_ONE "ON")
|
||||
set(ENABLE_LTO "OFF")
|
||||
set(ENABLE_STATIC_LINK "OFF")
|
||||
set(ENABLE_STRIP "OFF")
|
||||
endif()
|
||||
|
||||
|
||||
@@ -141,9 +142,7 @@ if(ENABLE_LTO)
|
||||
jerry_add_link_flags(-flto)
|
||||
endif()
|
||||
if(USING_GCC)
|
||||
if(NOT "${PLATFORM}" STREQUAL "DARWIN")
|
||||
jerry_add_compile_flags(-fno-fat-lto-objects)
|
||||
endif()
|
||||
jerry_add_compile_flags(-fno-fat-lto-objects)
|
||||
# Use gcc-ar and gcc-ranlib to support LTO
|
||||
set(CMAKE_AR "gcc-ar")
|
||||
set(CMAKE_RANLIB "gcc-ranlib")
|
||||
|
||||
Reference in New Issue
Block a user