diff --git a/CMakeLists.txt b/CMakeLists.txt index 43ac22ea22..4824f31176 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -213,6 +213,11 @@ if(USING_GCC OR USING_CLANG) endif() jerry_add_compile_warnings(all extra format-nonliteral init-self conversion sign-conversion format-security missing-declarations shadow strict-prototypes undef old-style-definition) jerry_add_compile_flags(-Wno-stack-protector -Wno-attributes -Werror) + + # When clang do tail optimization calling to ecma_op_object_get_with_receiver, + # the stack size will not increase. Use -fno-optimize-sibling-calls + # to disable the tail optimization. + jerry_add_compile_flags(-fno-optimize-sibling-calls) endif() if(USING_GCC) diff --git a/tools/run-tests.py b/tools/run-tests.py index 255e616e00..90397baf3c 100755 --- a/tools/run-tests.py +++ b/tools/run-tests.py @@ -79,6 +79,9 @@ def skip_if(condition, desc): # Test options for jerry-tests JERRY_TESTS_OPTIONS = [ + Options('jerry_tests-es.next', + OPTIONS_COMMON + OPTIONS_PROFILE_ESNEXT + OPTIONS_STACK_LIMIT + OPTIONS_GC_MARK_LIMIT + + OPTIONS_MEM_STRESS), Options('jerry_tests-es.next-debug', OPTIONS_COMMON + OPTIONS_PROFILE_ESNEXT + OPTIONS_DEBUG + OPTIONS_STACK_LIMIT + OPTIONS_GC_MARK_LIMIT + OPTIONS_MEM_STRESS),