Fix build with disabled ES2015 module system (#4084)

With a disabled ES2015 module system the build fails as an enum value
is incorrectly guarded and used.

JerryScript-DCO-1.0-Signed-off-by: Peter Gal pgal.usz@partner.samsung.com
This commit is contained in:
Péter Gál
2020-07-31 15:51:43 +02:00
committed by GitHub
parent b4a4619a6c
commit 26c1ffaf71
3 changed files with 18 additions and 3 deletions
+2
View File
@@ -159,6 +159,8 @@ JERRY_BUILDOPTIONS = [
['--cmake-param=-DENABLE_ALL_IN_ONE_SOURCE=ON']),
Options('buildoption_test-jerry-debugger',
['--jerry-debugger=on']),
Options('buildoption_test-module-off',
['--compile-flag=-DJERRY_MODULE_SYSTEM=0', '--lto=off']),
]
def get_arguments():