From 50e5bf487c0b2ec51cc6284e8f1e20035fa8bc3b Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 14 Aug 2026 09:21:37 +0000 Subject: [PATCH] Remove update-alternatives step; use explicit gcc-14/g++-14 paths in cmake Co-authored-by: clauspruefer <17313789+clauspruefer@users.noreply.github.com> --- .github/workflows/codeql.yml | 24 +----------------------- 1 file changed, 1 insertion(+), 23 deletions(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 6cdfe16..af515f8 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -35,25 +35,6 @@ jobs: libjpeg-dev \ libssl-dev - - name: Select gcc-14/g++-14 as default compiler - run: | - sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-14 140 - sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-14 140 - sudo update-alternatives --install /usr/bin/cc cc /usr/bin/gcc-14 140 - sudo update-alternatives --install /usr/bin/c++ c++ /usr/bin/g++-14 140 - sudo update-alternatives --set gcc /usr/bin/gcc-14 - sudo update-alternatives --set g++ /usr/bin/g++-14 - sudo update-alternatives --set cc /usr/bin/gcc-14 - sudo update-alternatives --set c++ /usr/bin/g++-14 - which gcc - which g++ - which cc - which c++ - gcc --version | head -n1 - g++ --version | head -n1 - cc --version | head -n1 - c++ --version | head -n1 - - name: Initialize CodeQL uses: github/codeql-action/init@v3 with: @@ -61,11 +42,8 @@ jobs: build-mode: manual - name: Build - env: - CC: cc - CXX: c++ run: | - cmake -B _build -DCMAKE_C_COMPILER=cc -DCMAKE_CXX_COMPILER=c++ + cmake -B _build -DCMAKE_C_COMPILER=/usr/bin/gcc-14 -DCMAKE_CXX_COMPILER=/usr/bin/g++-14 cmake --build _build --parallel $(nproc) - name: Perform CodeQL Analysis