diff --git a/.github/workflows/compilation_on_android_ubuntu_macos.yml b/.github/workflows/compilation_on_android_ubuntu_macos.yml index 25ef7da3..fd8fddc3 100644 --- a/.github/workflows/compilation_on_android_ubuntu_macos.yml +++ b/.github/workflows/compilation_on_android_ubuntu_macos.yml @@ -230,8 +230,6 @@ jobs: # uncompatiable feature and platform - os: macos-latest make_options_feature: "-DWAMR_BUILD_DEBUG_AOT=1" - - os: macos-latest - make_options_feature: "-DWAMR_BUILD_DEBUG_INTERP=1" # uncompatiable mode and feature # MULTI_MODULE only on INTERP mode - make_options_run_mode: $JIT_BUILD_OPTIONS diff --git a/.github/workflows/compilation_on_windows.yml b/.github/workflows/compilation_on_windows.yml index 5b875ac8..7560eea5 100644 --- a/.github/workflows/compilation_on_windows.yml +++ b/.github/workflows/compilation_on_windows.yml @@ -104,3 +104,10 @@ jobs: cmake .. -DWAMR_BUILD_SIMD=1 cmake --build . --config Release --parallel 4 cd .. && rm -force -r build + - name: Build iwasm [source debugger] + run: | + cd product-mini/platforms/windows + mkdir build && cd build + cmake .. -DWAMR_BUILD_DEBUG_INTERP=1 + cmake --build . --config Release --parallel 4 + cd .. && rm -force -r build diff --git a/product-mini/platforms/windows/CMakeLists.txt b/product-mini/platforms/windows/CMakeLists.txt index 41246b84..0ac3fa30 100644 --- a/product-mini/platforms/windows/CMakeLists.txt +++ b/product-mini/platforms/windows/CMakeLists.txt @@ -83,6 +83,17 @@ if (NOT DEFINED WAMR_BUILD_SIMD) set (WAMR_BUILD_SIMD 1) endif () +if (NOT DEFINED WAMR_BUILD_DEBUG_INTERP) + # Disable Debug feature by default + set (WAMR_BUILD_DEBUG_INTERP 0) +endif () + +if (WAMR_BUILD_DEBUG_INTERP EQUAL 1) + set (WAMR_BUILD_FAST_INTERP 0) + set (WAMR_BUILD_MINI_LOADER 0) + set (WAMR_BUILD_SIMD 0) +endif () + if (COLLECT_CODE_COVERAGE EQUAL 1) set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fprofile-arcs -ftest-coverage") endif ()