From e5982f0a11dd94fcd39ec3e1e05a363323640ab6 Mon Sep 17 00:00:00 2001 From: DNKpp Date: Mon, 23 Dec 2024 18:31:55 +0100 Subject: [PATCH] fix: disable cpptrace when vectorcall is enabled in ci/cd builds --- .github/workflows/build.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3046db595..8e5ec50f8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -399,8 +399,11 @@ jobs: run: | echo "ASAN_OPTIONS=$(echo $ASAN_OPTIONS:alloc_dealloc_mismatch=0)" >> $GITHUB_ENV + # std::stacktrace is not supported on c++20. + # cpptrace has issues with alternative default call convention + # see: https://github.com/jeremy-rifkin/cpptrace/issues/197 - name: Enable cpptrace if c++20 - if: ${{ matrix.cxx_standard == 20 }} + if: ${{ matrix.cxx_standard == 20 && matrix.config.default_call_convention != 'vectorcall' }} shell: bash run: | echo "CMAKE_CONFIG_EXTRA=$(echo $CMAKE_CONFIG_EXTRA -DMIMICPP_CONFIG_EXPERIMENTAL_USE_CPPTRACE=YES)" >> $GITHUB_ENV