build: improve premake5.lua

This commit is contained in:
Edo 2023-08-08 12:21:04 +02:00 committed by GitHub
parent 4e6a3cd421
commit 4fad0ca54d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 10 deletions

20
deps/premake/curl.lua vendored
View File

@ -51,18 +51,20 @@ function curl.project()
filter "toolset:msc*"
defines {
"USE_SCHANNEL",
"USE_WINDOWS_SSPI",
"USE_THREADS_WIN32",
}
defines {
"USE_SCHANNEL",
"USE_WINDOWS_SSPI",
"USE_THREADS_WIN32",
}
filter {}
filter "toolset:not msc*"
defines {
"USE_GNUTLS",
"USE_THREADS_POSIX",
}
defines {
"USE_GNUTLS",
"USE_THREADS_POSIX",
}
filter {}

View File

@ -76,6 +76,7 @@ if os.istarget("linux") then
linkoptions "--target=arm64-linux-gnu"
filter {}
-- always try to use lld. LD or Gold will not work
linkoptions "-fuse-ld=lld"
end
@ -95,7 +96,7 @@ end
flags {"NoIncrementalLink", "NoMinimalRebuild", "MultiProcessorCompile", "No64BitChecks"}
filter "configurations:Release"
optimize "Speed"
optimize "Size"
defines "NDEBUG"
flags "FatalCompileWarnings"
filter {}
@ -120,10 +121,14 @@ filter "system:windows"
files {
"./src/**.rc",
}
filter {}
filter { "system:windows", "toolset:not msc*" }
resincludedirs {
"%{_MAIN_SCRIPT_DIR}/src"
}
filter {}
filter { "system:windows", "toolset:msc*" }
resincludedirs {
"$(ProjectDir)src"