From 3ac48d2c2776efb169e4cd9541ab113e98477c89 Mon Sep 17 00:00:00 2001
From: ConfiG <cgytrus@cgyt.ru>
Date: Fri, 28 Jun 2024 14:20:42 +0300
Subject: [PATCH] idkkk

---
 .github/workflows/build.yml | 20 ++++++++++----------
 cmake/Platform.cmake        |  2 +-
 2 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index e17350ab..6823c478 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -148,14 +148,14 @@ jobs:
       id: build-debug-info
       uses: ./.github/actions/build-debug-info
       with:
-        has-sccache: true
+        has-sccache: false
 
-    - name: Setup caches
-      uses: ./.github/actions/setup-cache
-      with:
-        host: mac
-        target: mac
-        use-ccache: ${{ github.event_name != 'workflow_dispatch' || inputs.use-ccache }}
+    #- name: Setup caches
+    #  uses: ./.github/actions/setup-cache
+    #  with:
+    #    host: mac
+    #    target: mac
+    #    use-ccache: false
 
     - name: Setup Ninja
       uses: ./.github/actions/setup-ninja
@@ -179,12 +179,12 @@ jobs:
         -DCMAKE_RANLIB='/usr/bin/ranlib'
         -DCMAKE_OSX_DEPLOYMENT_TARGET="10.15"
         -DGEODE_DISABLE_PRECOMPILED_HEADERS=Off
-        -DCMAKE_OSX_ARCHITECTURES="arm64"
+        -DCMAKE_OSX_ARCHITECTURES="arm64;x86_64"
         ${{ steps.build-debug-info.outputs.extra-configure }}
       env:
         MACOSX_DEPLOYMENT_TARGET: "10.15"
         CPPFLAGS: "-I/opt/homebrew/opt/llvm/include"
-        LDFLAGS: "-L/opt/homebrew/opt/llvm/lib -Wl,-rpath,/opt/homebrew/opt/llvm/lib"
+        LDFLAGS: "-L/opt/homebrew/opt/llvm/lib"
 
     - name: Build
       run: |
@@ -193,7 +193,7 @@ jobs:
       env:
         MACOSX_DEPLOYMENT_TARGET: "10.15"
         CPPFLAGS: "-I/opt/homebrew/opt/llvm/include"
-        LDFLAGS: "-L/opt/homebrew/opt/llvm/lib -Wl,-rpath,/opt/homebrew/opt/llvm/lib"
+        LDFLAGS: "-L/opt/homebrew/opt/llvm/lib"
 
     - name: Upload Artifacts
       uses: actions/upload-artifact@v4
diff --git a/cmake/Platform.cmake b/cmake/Platform.cmake
index a851461b..ecf6d548 100644
--- a/cmake/Platform.cmake
+++ b/cmake/Platform.cmake
@@ -26,7 +26,7 @@ elseif (GEODE_TARGET_PLATFORM STREQUAL "MacOS")
 
 	# only exists as a global property
 	set(CMAKE_OSX_DEPLOYMENT_TARGET "10.15")
-	#target_compile_options(${PROJECT_NAME} INTERFACE "-mmacos-version-min=10.15")
+	target_compile_options(${PROJECT_NAME} INTERFACE "-mmacos-version-min=10.15")
 
 	target_link_libraries(${PROJECT_NAME} INTERFACE
 		"-framework Cocoa"