build: use clang on Windows too (refactor Premake for cURL)

This commit is contained in:
2025-04-30 11:59:49 +02:00
parent 7c5d17d87a
commit 89794c0952
2 changed files with 18 additions and 16 deletions

15
deps/premake/curl.lua vendored
View File

@ -5,7 +5,7 @@ curl = {
function curl.import()
links { "curl" }
filter "toolset:msc*"
filter "system:windows"
links { "Crypt32.lib" }
filter {}
@ -13,7 +13,7 @@ function curl.import()
end
function curl.includes()
filter "toolset:msc*"
filter "system:windows"
includedirs {
path.join(curl.source, "include"),
}
@ -49,7 +49,7 @@ function curl.project()
"BUILDING_LIBCURL",
}
filter "toolset:msc*"
filter "system:windows"
defines {
"USE_SCHANNEL",
@ -58,15 +58,6 @@ function curl.project()
}
filter {}
filter "toolset:not msc*"
defines {
"USE_GNUTLS",
"USE_THREADS_POSIX",
}
filter {}
warnings "Off"
kind "StaticLib"