Просмотр исходного кода

Enable source debugger CI on windows and darwin (#912)

Xu Jun 4 лет назад
Родитель
Сommit
ac3f7dcc0e

+ 0 - 2
.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

+ 7 - 0
.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

+ 11 - 0
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 ()