From 4574198553c93f963768d52e1734d6865bf27f72 Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Mon, 21 Apr 2025 12:41:29 +0100 Subject: [PATCH] Javascript jsc c++20 testing quirk fix --- .github/workflows/linux.yml | 6 ++++++ Examples/test-suite/typemap_array_qualifiers.i | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 2dd2a4ad5..62a785885 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -329,6 +329,12 @@ jobs: CPPSTD: c++20 GCC: 13 os: ubuntu-22.04 + - SWIGLANG: javascript + ENGINE: jsc + CPPSTD: c++20 + VER: '4.1' + GCC: 13 + os: ubuntu-22.04 - SWIGLANG: javascript ENGINE: napi VER: '22' diff --git a/Examples/test-suite/typemap_array_qualifiers.i b/Examples/test-suite/typemap_array_qualifiers.i index f7cce3c86..625c2ef1b 100644 --- a/Examples/test-suite/typemap_array_qualifiers.i +++ b/Examples/test-suite/typemap_array_qualifiers.i @@ -1,5 +1,10 @@ %module typemap_array_qualifiers +// Including this fragment ensures math.h is included before the '#define volatile' below, +// without which gave peculiar partial specialization errors for javascript jsc and -std=c++20 +// - volatile is used in the template parameters of numeric_limits on Linux. +%fragment(""); + %define CLEAR_SWIGTYPE_TYPEMAPS %typemap(in) SWIGTYPE,