From 5e9aefb52a0c8dfa951ee0245aeea1fa889078c1 Mon Sep 17 00:00:00 2001 From: Daniel Kolesa Date: Mon, 12 Apr 2021 03:56:59 +0200 Subject: [PATCH] disable mac and mingw cross CI builds for now apparently macos c++ stdlib is missing c++20 features (particularly string_view doesn't seem to accept two pointers in a constructor) and mingw is only present as gcc9 in ubuntu 20.04 (too old) --- .github/workflows/build.yaml | 37 +++++++++++++++++------------------- README.md | 3 ++- src/cs_std.hh | 1 + 3 files changed, 20 insertions(+), 21 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 196f18c..7d7961e 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -35,7 +35,8 @@ jobs: - { target: mips-linux-gnu, cc: gcc-10, buildtype: debugoptimized } - { target: m68k-linux-gnu, cc: gcc-10, buildtype: debug } # x86_64 windows cross, release mode - - { target: x86_64-w64-mingw32, cc: gcc-10, buildtype: release } + # there is no gcc10 mingw64 crosscompiler yet and gcc9 is too old + #- { target: x86_64-w64-mingw32, cc: gcc-10, buildtype: release } steps: - name: Checkout @@ -53,9 +54,6 @@ jobs: name: Windows runs-on: windows-2019 - env: - LUA_VERSIONS: '5.4.2 5.3.6 5.2.4 5.1.5' - steps: - name: Checkout uses: actions/checkout@v2 @@ -68,23 +66,22 @@ jobs: - name: Build and test cubescript run: bash ./.ci/build-cs-windows - mac: - name: MacOS - runs-on: macos-10.15 +# mac: +# name: MacOS +# runs-on: macos-10.15 - env: - TARGET: 'darwin' - LUA_VERSIONS: '5.4.2 5.3.6 5.2.4 5.1.5' - CC: 'clang' +# env: +# TARGET: 'darwin' +# CC: 'clang' - steps: - - name: Checkout - uses: actions/checkout@v2 - with: - persist-credentials: false +# steps: +# - name: Checkout +# uses: actions/checkout@v2 +# with: +# persist-credentials: false - - name: Prepare environment - run: sh ./.ci/install-env +# - name: Prepare environment +# run: sh ./.ci/install-env - - name: Build and test cubescript - run: sh ./.ci/build-cs +# - name: Build and test cubescript +# run: sh ./.ci/build-cs diff --git a/README.md b/README.md index 7210272..05ab2a1 100644 --- a/README.md +++ b/README.md @@ -114,7 +114,8 @@ compilers include: * Clang 11 * Microsoft Visual C++ 2019 -Older versions of GCC and Clang may work, with no guarantees. +Older versions of Clang may work, with no guarantees (GCC 9 does not, though, +as it's missing features in libstdc++). You will need [Meson](https://mesonbuild.com/) to build the project. Most Unix-like systems have it in their package management, on Windows there is diff --git a/src/cs_std.hh b/src/cs_std.hh index 4c91df8..9ed1456 100644 --- a/src/cs_std.hh +++ b/src/cs_std.hh @@ -6,6 +6,7 @@ #include #include #include +#include #include #include