From f5271f91891120cfa1978f157ca4cfc1f900b6e6 Mon Sep 17 00:00:00 2001 From: nekobit Date: Sun, 26 Mar 2023 06:33:04 +0000 Subject: [PATCH] CC hack FossilOrigin-Name: 95982c7ae429b8fcdf8fb17a4170aad38e40cef7978e8062a10f30d5f50fe573 --- premake4.lua | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/premake4.lua b/premake4.lua index dbc5a32..6036681 100644 --- a/premake4.lua +++ b/premake4.lua @@ -1,4 +1,6 @@ -solution "mastodont-c" +premake.gcc.cc = os.getenv("CC") or 'cc'; + +solution "mastodont-c"; configurations { "Debug", "Release" }; -- BEGIN Mastodont project @@ -9,16 +11,17 @@ files { "include/*.h", "src/*.c" }; includedirs { "include/" }; configuration { "linux", "bsd", "gmake" }; - linkoptions { "`curl-config --libs`" }; - linkoptions { "`pkg-config --libs cjson`" }; +linkoptions { "`curl-config --libs`" }; +linkoptions { "`pkg-config --libs cjson`" }; + configuration { "Debug" }; - defines { "DEBUG" }; - flags("Symbols"); +defines { "DEBUG" }; +flags("Symbols"); configuration { "Release" }; - defines { "NDEBUG" }; - flags("Optimize"); +defines { "NDEBUG" }; +flags("Optimize"); -- END Mastodont-c local prefix = os.getenv("PREFIX") or "/usr/local"; @@ -35,4 +38,4 @@ newaction { os.mkdir(pkgconfig_path); os.copyfile("mastodont.pc", pkgconfig_path .. "/mastodont.pc"); end -} \ No newline at end of file +}