From b1dcceb78e8a0b055d93cbbedd8e32a0443049a7 Mon Sep 17 00:00:00 2001 From: mcbarton Date: Sat, 18 Jan 2025 20:30:27 +0000 Subject: [PATCH] Add Ubuntu 24.04 arm runners to ci --- .github/workflows/Ubuntu.yml | 63 ++++++++++++++++++++++++++++++++ .github/workflows/emscripten.yml | 8 ++++ lib/Interpreter/CppInterOp.cpp | 14 +++++++ 3 files changed, 85 insertions(+) diff --git a/.github/workflows/Ubuntu.yml b/.github/workflows/Ubuntu.yml index fc9b8a9e8..8a862a64d 100644 --- a/.github/workflows/Ubuntu.yml +++ b/.github/workflows/Ubuntu.yml @@ -94,6 +94,42 @@ jobs: cling-version: '1.0' llvm_enable_projects: "clang" llvm_targets_to_build: "host;NVPTX" + - name: ubu24-arm-gcc12-clang-repl-19 + os: ubuntu-24.04-arm + compiler: gcc-12 + clang-runtime: '19' + cling: Off + llvm_enable_projects: "clang" + llvm_targets_to_build: "host;NVPTX" + - name: ubu24-arm-gcc12-clang-repl-18 + os: ubuntu-24.04-arm + compiler: gcc-12 + clang-runtime: '18' + cling: Off + llvm_enable_projects: "clang" + llvm_targets_to_build: "host;NVPTX" + - name: ubu24-arm-gcc12-clang-repl-17 + os: ubuntu-24.04-arm + compiler: gcc-12 + clang-runtime: '17' + cling: Off + llvm_enable_projects: "clang" + llvm_targets_to_build: "host;NVPTX" + - name: ubu24-arm-gcc12-clang-repl-16 + os: ubuntu-24.04-arm + compiler: gcc-12 + clang-runtime: '16' + cling: Off + llvm_enable_projects: "clang" + llvm_targets_to_build: "host;NVPTX" + - name: ubu24-arm-gcc9-clang13-cling + os: ubuntu-24.04-arm + compiler: gcc-9 + clang-runtime: '13' + cling: On + cling-version: '1.0' + llvm_enable_projects: "clang" + llvm_targets_to_build: "host;NVPTX" steps: - uses: actions/checkout@v4 @@ -334,6 +370,33 @@ jobs: clang-runtime: '13' cling: On cling-version: '1.0' + - name: ubu24-arm-gcc12-clang-repl-19 + os: ubuntu-24.04-arm + compiler: gcc-12 + clang-runtime: '19' + cling: Off + - name: ubu24-arm-gcc12-clang-repl-18 + os: ubuntu-24.04-arm + compiler: gcc-12 + clang-runtime: '18' + cling: Off + - name: ubu24-arm-gcc12-clang-repl-17 + os: ubuntu-24.04-arm + compiler: gcc-12 + clang-runtime: '17' + cling: Off + - name: ubu24-arm-gcc12-clang-repl-16 + os: ubuntu-24.04-arm + compiler: gcc-12 + clang-runtime: '16' + cling: Off + cppyy: Off + - name: ubu24-arm-gcc9-clang13-cling + os: ubuntu-24.04-arm + compiler: gcc-9 + clang-runtime: '13' + cling: On + cling-version: '1.0' steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/emscripten.yml b/.github/workflows/emscripten.yml index 1fcdd6090..dceefc0c3 100644 --- a/.github/workflows/emscripten.yml +++ b/.github/workflows/emscripten.yml @@ -37,6 +37,14 @@ jobs: llvm_enable_projects: "clang;lld" llvm_targets_to_build: "WebAssembly" emsdk_ver: "3.1.45" + - name: ubu24-arm-gcc12-clang-repl-19-emscripten + os: ubuntu-24.04-arm + compiler: gcc-12 + clang-runtime: '19' + cling: Off + llvm_enable_projects: "clang;lld" + llvm_targets_to_build: "WebAssembly" + emsdk_ver: "3.1.45" - name: osx15-arm-clang-clang-repl-19-emscripten os: macos-15 compiler: clang diff --git a/lib/Interpreter/CppInterOp.cpp b/lib/Interpreter/CppInterOp.cpp index 34908d88a..661265c52 100644 --- a/lib/Interpreter/CppInterOp.cpp +++ b/lib/Interpreter/CppInterOp.cpp @@ -2828,7 +2828,14 @@ namespace Cpp { #define DEBUG_TYPE "exec" std::array buffer; +#if defined(__GNUC__) +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wignored-attributes" +#endif std::unique_ptr pipe(popen(cmd, "r"), pclose); +#if defined(__GNUC__) +#pragma GCC diagnostic pop +#endif LLVM_DEBUG(dbgs() << "Executing command '" << cmd << "'\n"); if (!pipe) { @@ -3437,7 +3444,14 @@ namespace Cpp { } class StreamCaptureInfo { +#if defined(__GNUC__) +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wignored-attributes" +#endif std::unique_ptr m_TempFile; +#if defined(__GNUC__) +#pragma GCC diagnostic pop +#endif int m_FD = -1; int m_DupFD = -1;