Skip to content

Commit

Permalink
Update NinjaBuildTools.lua
Browse files Browse the repository at this point in the history
Update BuildTarget.lua

Update BuildTarget.lua

Update BuildTarget.lua

Update BuildTarget.lua

Update NinjaBuildTools.lua

Update ci-mac.yml

Update ci-mac.yml

Update BuildTarget.lua

Update ci-mac.yml

Update NinjaBuildTools.lua
  • Loading branch information
rdw-software committed Jan 7, 2025
1 parent 01c7143 commit 98d50db
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 12 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/ci-mac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down
3 changes: 1 addition & 2 deletions BuildTools/BuildTarget.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions BuildTools/NinjaBuildTools.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 98d50db

Please sign in to comment.