From b7a2a153aa99d961aa929d080b2f9b03fd975de8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Csaba=20Osztrogon=C3=A1c?= Date: Thu, 23 Jan 2020 15:30:09 +0100 Subject: [PATCH] Fix the build with enabled debugger on Windows (#3531) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Changes: - Typo fixed in cmake build system and appveyor config - Added a new buildoption test JerryScript-DCO-1.0-Signed-off-by: Csaba Osztrogonác oszi@inf.u-szeged.hu --- appveyor.yml | 8 ++++---- jerry-ext/CMakeLists.txt | 2 +- tools/run-tests.py | 2 ++ 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index e1537a4e0..2fb839a5f 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -17,15 +17,15 @@ platform: environment: matrix: - - FEATURE_DEBUGGER: ON - - FEATURE_DEBUGGER: OFF + - JERRY_DEBUGGER: ON + - JERRY_DEBUGGER: OFF # Steps of a job. init: - cmake -version before_build: - - if "%PLATFORM%"=="Win32" cmake -G"Visual Studio 15 2017" -Bbuild -H. -DFEATURE_DEBUGGER=%FEATURE_DEBUGGER% - - if "%PLATFORM%"=="x64" cmake -G"Visual Studio 15 2017 Win64" -Bbuild -H. -DFEATURE_DEBUGGER=%FEATURE_DEBUGGER% + - if "%PLATFORM%"=="Win32" cmake -G"Visual Studio 15 2017" -Bbuild -H. -DJERRY_DEBUGGER=%JERRY_DEBUGGER% + - if "%PLATFORM%"=="x64" cmake -G"Visual Studio 15 2017 Win64" -Bbuild -H. -DJERRY_DEBUGGER=%JERRY_DEBUGGER% build: project: build\Jerry.sln parallel: true diff --git a/jerry-ext/CMakeLists.txt b/jerry-ext/CMakeLists.txt index ea76dd1a2..967b777f1 100644 --- a/jerry-ext/CMakeLists.txt +++ b/jerry-ext/CMakeLists.txt @@ -50,7 +50,7 @@ target_link_libraries(${JERRY_EXT_NAME} jerry-core) set(JERRY_EXT_PKGCONFIG_LIBS) -if(USING_MSVC AND FEATURE_DEBUGGER) +if(USING_MSVC AND JERRY_DEBUGGER) target_link_libraries(${JERRY_EXT_NAME} ws2_32) set(JERRY_EXT_PKGCONFIG_LIBS -lws2_32) endif() diff --git a/tools/run-tests.py b/tools/run-tests.py index a51c2c32d..ed96753dc 100755 --- a/tools/run-tests.py +++ b/tools/run-tests.py @@ -175,6 +175,8 @@ JERRY_BUILDOPTIONS = [ OPTIONS_GC_MARK_LIMIT), Options('buildoption_test-single-source', ['--cmake-param=-DENABLE_ALL_IN_ONE_SOURCE=ON']), + Options('buildoption_test-jerry-debugger', + ['--jerry-debugger=on']), ] def get_arguments():