ports/devel/genie/files/patch-src_tools_gcc.lua
Alastair Hogge c62bdd5911 devel/genie: Update version g2020082801=>g20230921
- Pet port{clippy,fmt,lint} hints
- Add DEBUG option to Port
- GENie releases come with pre-rolled assets used for project
  generation, this means GNU makefiles configured to build GENie, and
  created for User projects, include hard coded architecture
  information, including compiler platform options (-m64). Remove hard
  coded information, as well as any -O optimisation that are fouling
  with the Ports framework. Patch the GENie sources to produce sanitised
  output fit for consumers of the Port, and use the assets produced from
  the build to create the needed patches in files/

PR:		274947
2023-11-23 23:02:57 +01:00

24 lines
671 B
Lua

--- src/tools/gcc.lua.orig 2023-11-11 05:52:50 UTC
+++ src/tools/gcc.lua
@@ -12,9 +12,9 @@ --
-- Set default tools
--
- premake.gcc.cc = "gcc"
- premake.gcc.cxx = "g++"
- premake.gcc.ar = "ar"
+ premake.gcc.cc = _OPTIONS["CC"]
+ premake.gcc.cxx = _OPTIONS["CXX"]
+ premake.gcc.ar = _OPTIONS["AR"]
premake.gcc.rc = "windres"
premake.gcc.llvm = false
@@ -35,7 +35,7 @@ --
FloatFast = "-ffast-math",
FloatStrict = "-ffloat-store",
NoFramePointer = "-fomit-frame-pointer",
- Optimize = "-O2",
+ Optimize = "",
OptimizeSize = "-Os",
OptimizeSpeed = "-O3",
Symbols = "-g",