Disable LTO, Enable ALL_IN_ONE by default in Mac OS X build.
JerryScript-DCO-1.0-Signed-off-by: Sung-Jae Lee sjlee@mail.com
This commit is contained in:
@@ -70,6 +70,8 @@ project (Jerry CXX C ASM)
|
|||||||
|
|
||||||
option(STRIP_RELEASE_BINARY "Strip symbols from release binaries" ON)
|
option(STRIP_RELEASE_BINARY "Strip symbols from release binaries" ON)
|
||||||
elseif("${PLATFORM}" STREQUAL "DARWIN")
|
elseif("${PLATFORM}" STREQUAL "DARWIN")
|
||||||
|
option(ENABLE_LTO "Enable LTO build" OFF)
|
||||||
|
option(ENABLE_ALL_IN_ONE "Enable ALL_IN_ONE build" ON)
|
||||||
set(PLATFORM_EXT "DARWIN")
|
set(PLATFORM_EXT "DARWIN")
|
||||||
set(EXTERNAL_BUILD FALSE)
|
set(EXTERNAL_BUILD FALSE)
|
||||||
|
|
||||||
|
|||||||
@@ -41,6 +41,8 @@
|
|||||||
# Parallel build of several selected targets started manually is not supported.
|
# Parallel build of several selected targets started manually is not supported.
|
||||||
#
|
#
|
||||||
|
|
||||||
|
export TARGET_NATIVE_SYSTEMS = $(shell uname -s | tr '[:upper:]' '[:lower:]')
|
||||||
|
|
||||||
# Options
|
# Options
|
||||||
# Valgrind
|
# Valgrind
|
||||||
VALGRIND ?= OFF
|
VALGRIND ?= OFF
|
||||||
@@ -64,7 +66,11 @@
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
# LTO
|
# LTO
|
||||||
LTO ?= ON
|
ifeq ($(TARGET_NATIVE_SYSTEMS),darwin)
|
||||||
|
LTO ?= OFF
|
||||||
|
else
|
||||||
|
LTO ?= ON
|
||||||
|
endif
|
||||||
|
|
||||||
ifneq ($(LTO),ON)
|
ifneq ($(LTO),ON)
|
||||||
LTO := OFF
|
LTO := OFF
|
||||||
@@ -77,7 +83,12 @@
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
# All-in-one build
|
# All-in-one build
|
||||||
ALL_IN_ONE ?= OFF
|
ifeq ($(TARGET_NATIVE_SYSTEMS),darwin)
|
||||||
|
ALL_IN_ONE ?= ON
|
||||||
|
else
|
||||||
|
ALL_IN_ONE ?= OFF
|
||||||
|
endif
|
||||||
|
|
||||||
ifneq ($(ALL_IN_ONE),ON)
|
ifneq ($(ALL_IN_ONE),ON)
|
||||||
ALL_IN_ONE := OFF
|
ALL_IN_ONE := OFF
|
||||||
endif
|
endif
|
||||||
@@ -91,8 +102,6 @@
|
|||||||
QLOG := >/dev/null
|
QLOG := >/dev/null
|
||||||
endif
|
endif
|
||||||
|
|
||||||
export TARGET_NATIVE_SYSTEMS = $(shell uname -s | tr '[:upper:]' '[:lower:]')
|
|
||||||
|
|
||||||
# External build configuration
|
# External build configuration
|
||||||
# Flag, indicating whether to use compiler's default libc (YES / NO)
|
# Flag, indicating whether to use compiler's default libc (YES / NO)
|
||||||
USE_COMPILER_DEFAULT_LIBC ?= NO
|
USE_COMPILER_DEFAULT_LIBC ?= NO
|
||||||
|
|||||||
Reference in New Issue
Block a user