Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports-kde
Path: blob/main/games/0ad/files/patch-build_premake_premake5.lua
16461 views
1
--- build/premake/premake5.lua.orig 2025-01-28 19:57:28 UTC
2
+++ build/premake/premake5.lua
3
@@ -85,14 +85,10 @@ else
4
end
5
else
6
local machine = "x86_64"
7
- if os.getenv("HOSTTYPE") and os.getenv("HOSTTYPE") ~= '' then
8
- machine = os.getenv("HOSTTYPE")
9
- else
10
- os.execute(cc .. " -dumpmachine > .gccmachine.tmp")
11
- local f = io.open(".gccmachine.tmp", "r")
12
- machine = f:read("*line")
13
- f:close()
14
- end
15
+ os.execute(cc .. " -dumpmachine > .gccmachine.tmp")
16
+ local f = io.open(".gccmachine.tmp", "r")
17
+ machine = f:read("*line")
18
+ f:close()
19
-- Special handling on mac os where xcode needs special flags.
20
-- TODO: We should look into "universal" macOS compilation.
21
if os.istarget("macosx") then
22
23