Introduce 'USE_COMPILER_DEFAULT_LIBC' for switching from jerry-libc to a libc, provided by compiler.

JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan r.ayrapetyan@samsung.com
This commit is contained in:
Ruben Ayrapetyan
2015-07-08 01:09:08 +03:00
committed by Evgeny Gavrin
parent 6d86c4b2e1
commit 393d693e23
2 changed files with 29 additions and 13 deletions
+8
View File
@@ -69,8 +69,16 @@
endif
# External build configuration
# Flag, indicating whether to use compiler's default libc (YES / NO)
USE_COMPILER_DEFAULT_LIBC ?= NO
# List of include paths for external libraries (semicolon-separated)
EXTERNAL_LIBS_INTERFACE ?=
# External libc interface
ifeq ($(USE_COMPILER_DEFAULT_LIBC),YES)
ifneq ($(EXTERNAL_LIBC_INTERFACE),)
$(error EXTERNAL_LIBC_INTERFACE should not be specified in case compiler's default libc is used)
endif
endif
# Compiler to use for external build
EXTERNAL_C_COMPILER ?= arm-none-eabi-gcc
EXTERNAL_CXX_COMPILER ?= arm-none-eabi-g++