diff --git a/.github/workflows/ci-mac.yml b/.github/workflows/ci-mac.yml index 5d1c5da8..975e96f0 100644 --- a/.github/workflows/ci-mac.yml +++ b/.github/workflows/ci-mac.yml @@ -33,8 +33,7 @@ jobs: - os: macos-15 arch: M1 env: - MACOSX_DEPLOYMENT_TARGET: 13.3 - HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK: 1 # Prevent brew updates in the ccache setup step (~2GB download ...) + MACOSX_DEPLOYMENT_TARGET: 15.3 steps: # nproc is used to determine the number of parallel jobs @@ -44,16 +43,12 @@ jobs: - name: Check out Git repository run: cd .. && git clone https://github.com/evo-lua/evo-runtime --recursive --jobs=$(nproc) - - name: Set up ccache - uses: hendrikmuhs/ccache-action@v1.2 - - name: Install Ninja run: brew install ninja - name: Configure environment run: | - echo "CC=ccache gcc" >> $GITHUB_ENV - echo "CXX=ccache g++" >> $GITHUB_ENV + echo | clang -dM -E - | grep __apple_build_version__ - name: Build luajit run: deps/luajit-unixbuild.sh && ls ninjabuild-unix diff --git a/BuildTools/BuildTarget.lua b/BuildTools/BuildTarget.lua index 98e1a2d2..ceefaed1 100644 --- a/BuildTools/BuildTarget.lua +++ b/BuildTools/BuildTarget.lua @@ -175,8 +175,7 @@ function BuildTarget:ProcessLuaSources() local objectFiles = self.objectFiles for index, luaSourceFilePath in ipairs(self.luaSources) do - local outputFile = - string.format("%s/%s.%s", self.BUILD_DIR, luaSourceFilePath, ".cpp") + local outputFile = string.format("%s/%s.%s", self.BUILD_DIR, luaSourceFilePath, "c") ninjaFile:AddBuildEdge(outputFile, "bcsave " .. luaSourceFilePath) table.insert(objectFiles, outputFile) end diff --git a/BuildTools/NinjaBuildTools.lua b/BuildTools/NinjaBuildTools.lua index cbf60c62..187bee86 100644 --- a/BuildTools/NinjaBuildTools.lua +++ b/BuildTools/NinjaBuildTools.lua @@ -23,15 +23,15 @@ local C_BuildTools = { CPP_COMPILER = "g++", COMPILER_FLAGS_CPP = DEFAULT_COMPILER_FLAGS .. " -std=c++20" - .. (isMacOS and " -Wl,-ld64 -Wl,-no_deduplicate" or ""), + .. (isMacOS and " -Wl,-ld_classic -Wl,-no_deduplicate" or ""), -- Forced ObjC compilation should be removed once glfw3webgpu is merged into the GLFW core library COMPILER_FLAGS_C = DEFAULT_COMPILER_FLAGS .. " -std=c11" - .. (isMacOS and " -ObjC -Wl,-ld64 -Wl,-no_deduplicate" or ""), + .. (isMacOS and " -ObjC -Wl,-ld_classic -Wl,-no_deduplicate" or ""), C_LINKER = "gcc", CPP_LINKER = "g++", -- Must export the entry point of bytecode objects so that LuaJIT can load them via require() - LINKER_FLAGS = isWindows and "-Wl,--export-all-symbols" or "-rdynamic -no_deduplicate -ld64", + LINKER_FLAGS = isWindows and "-Wl,--export-all-symbols" or "-rdynamic -no_deduplicate -Wl,-ld_classic", C_ARCHIVER = "ar", CPP_ARCHIVER = "ar", ARCHIVER_FLAGS = "-rcs",