diff options
author | Gabriel "_|Nix|_" Schulhof <gabriel.schulhof@intel.com> | 2017-09-22 13:35:38 +0300 |
---|---|---|
committer | Zoltan Herczeg <zherczeg.u-szeged@partner.samsung.com> | 2017-09-22 12:35:38 +0200 |
commit | 81952f3cd0880951531fa6dc157099839d1f58da (patch) | |
tree | 013a9157f6a4712c901f6f6a683389cce294be82 /jerry-libc | |
parent | 8d916a44f1d0578c0ad3fee8eb5613c2f0ef8f70 (diff) |
module: Re-implement using library constructors/destructors (#2018)
By using constructors/destructors we unify the case of static linking with
that of dynamic linking, and we reuse the build flag FEATURE_INIT_FINI. Using
constructors/destructors also allows us to cover the case where library
constructor/destructor functionality is unavailable, because we can expose the
module registration/unregistration functions as global symbols, to be called
explicitly from within the application.
Fixes https://github.com/jerryscript-project/jerryscript/issues/1952
JerryScript-DCO-1.0-Signed-off-by: Gabriel Schulhof gabriel.schulhof@intel.com
Diffstat (limited to 'jerry-libc')
-rw-r--r-- | jerry-libc/CMakeLists.txt | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/jerry-libc/CMakeLists.txt b/jerry-libc/CMakeLists.txt index b594e74e..300a91cc 100644 --- a/jerry-libc/CMakeLists.txt +++ b/jerry-libc/CMakeLists.txt @@ -16,12 +16,6 @@ cmake_minimum_required (VERSION 2.8.12) set(JERRY_LIBC_NAME jerry-libc) project (${JERRY_LIBC_NAME} C ASM) -# Optional features -set(FEATURE_INIT_FINI OFF CACHE BOOL "Enable init/fini arrays?") - -# Status messages -message(STATUS "FEATURE_INIT_FINI " ${FEATURE_INIT_FINI}) - # Checks the optional features # Enable init/fini arrays if(FEATURE_INIT_FINI) |