From 05e1b54e97cda7d6fbed3b47a9553942f57c4820 Mon Sep 17 00:00:00 2001 From: Andrew Kaster Date: Thu, 25 Jul 2024 14:23:30 -0600 Subject: [PATCH] CI: Enable Clang plugins for Linux Clang job --- .github/workflows/lagom-template.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/lagom-template.yml b/.github/workflows/lagom-template.yml index bf3e5fdcc2f..82d295387a0 100644 --- a/.github/workflows/lagom-template.yml +++ b/.github/workflows/lagom-template.yml @@ -67,13 +67,16 @@ jobs: if ${{ inputs.toolchain == 'Clang' }} ; then echo "host_cc=clang-18" >> "$GITHUB_OUTPUT" echo "host_cxx=clang++-18" >> "$GITHUB_OUTPUT" + echo "extra_cmake_options=-DENABLE_CLANG_PLUGINS=ON" >> "$GITHUB_OUTPUT" elif ${{ inputs.toolchain == 'GNU' }} ; then echo "host_cc=gcc-13" >> "$GITHUB_OUTPUT" echo "host_cxx=g++-13" >> "$GITHUB_OUTPUT" + echo "extra_cmake_options=" >> "$GITHUB_OUTPUT" fi elif ${{ inputs.os_name == 'macOS' }} ; then echo "host_cc=$(xcrun --find clang)" >> "$GITHUB_OUTPUT" echo "host_cxx=$(xcrun --find clang++)" >> "$GITHUB_OUTPUT" + echo "extra_cmake_options=" >> "$GITHUB_OUTPUT" fi - name: Set dynamic environment variables @@ -95,6 +98,7 @@ jobs: cmake --preset Sanitizer_CI -B Build \ -DINCLUDE_WASM_SPEC_TESTS=ON \ -DWASM_SPEC_TEST_SKIP_FORMATTING=ON \ + ${{ steps.build-parameters.outputs.extra_cmake_options }} \ -DCMAKE_C_COMPILER=${{ steps.build-parameters.outputs.host_cc }} \ -DCMAKE_CXX_COMPILER=${{ steps.build-parameters.outputs.host_cxx }}