fix: windows also has _NT

This commit is contained in:
əlemi 2024-09-15 00:00:03 +02:00
parent 2abe23e493
commit 4842719dd0
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -7,6 +7,8 @@ local arch = os_uname.machine
local platform = string.lower(os_uname.sysname)
if platform == "mac" then
platform = "darwin"
elseif platform == "windows_nt" then
platform = "windows-gnu"
else
platform = platform .. "-gnu"
end