From 7c43c4e8e07fe16a1c6f52a322ebca1471f05965 Mon Sep 17 00:00:00 2001 From: Danixu Date: Mon, 15 Apr 2024 18:14:49 +0200 Subject: [PATCH] Moved to posix compiler in Windows version --- .github/workflows/compile-release.yml | 2 +- tc-win64.cmake | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/compile-release.yml b/.github/workflows/compile-release.yml index 046e318..4ab48d8 100644 --- a/.github/workflows/compile-release.yml +++ b/.github/workflows/compile-release.yml @@ -7,7 +7,7 @@ on: jobs: build: - runs-on: ubuntu-24.04 + runs-on: ubuntu-22.04 permissions: contents: write diff --git a/tc-win64.cmake b/tc-win64.cmake index 061b6bd..1f36bd0 100644 --- a/tc-win64.cmake +++ b/tc-win64.cmake @@ -11,9 +11,9 @@ execute_process( get_filename_component(ARM_TOOLCHAIN_DIR ${BINUTILS_PATH} DIRECTORY) -set(CMAKE_C_COMPILER ${TOOLCHAIN_PREFIX}gcc) +set(CMAKE_C_COMPILER ${TOOLCHAIN_PREFIX}gcc-posix) set(CMAKE_ASM_COMPILER ${CMAKE_C_COMPILER}) -set(CMAKE_CXX_COMPILER ${TOOLCHAIN_PREFIX}g++) +set(CMAKE_CXX_COMPILER ${TOOLCHAIN_PREFIX}g++-posix) set(CMAKE_C_COMPILER_WORKS 1) set(CMAKE_CXX_COMPILER_WORKS 1)