From eadf9c1c2e3b496538389034bce66c3c343e9c2b Mon Sep 17 00:00:00 2001 From: WerWolv Date: Fri, 3 Nov 2023 15:41:26 +0100 Subject: [PATCH] Don't use -target anymore --- .github/workflows/build.yml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index df8b8d2f7..78d664617 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -131,15 +131,15 @@ jobs: include: - suffix: "-NoGPU" custom_glfw: true - target: "x86_64-apple-macos12" - needs_update: false + target: "x86_64" + needs_update: true - suffix: "" custom_glfw: false - target: "x86_64-apple-macos12" - needs_update: false + target: "x86_64" + needs_update: true - suffix: "-ARM" custom_glfw: false - target: "arm64-apple-macos12" + target: "arm64" needs_update: true name: 🍎 macOS 11.0${{matrix.suffix}} @@ -227,8 +227,9 @@ jobs: PKG_CONFIG_PATH="$(brew --prefix openssl)/lib/pkgconfig":"$(brew --prefix)/lib/pkgconfig" \ cmake -G "Ninja" \ -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} \ - -DCMAKE_C_FLAGS="-target ${{matrix.target}}" \ - -DCMAKE_CXX_FLAGS="-target ${{matrix.target}}" \ + -DCMAKE_OSX_ARCHITECTURES="${{matrix.target}}" \ + -DCMAKE_SYSTEM_NAME="Darwin" \ + -DCMAKE_SYSTEM_PROCESSOR="${{matrix.target}}" \ -DCREATE_BUNDLE=ON \ -DCREATE_PACKAGE=ON \ -DCMAKE_C_COMPILER_LAUNCHER=ccache \