mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 14:38:18 +00:00
fixed warnings with mingw
This commit is contained in:
parent
0c2b1d4ab4
commit
16d201517e
8
bam.lua
8
bam.lua
|
@ -213,13 +213,7 @@ function GenerateWindowsSettings(settings, conf, target_arch, compiler)
|
||||||
end
|
end
|
||||||
settings.cc.flags:Add("/wd4244")
|
settings.cc.flags:Add("/wd4244")
|
||||||
elseif compiler == "gcc" or config.compiler.driver == "clang" then
|
elseif compiler == "gcc" or config.compiler.driver == "clang" then
|
||||||
if target_arch == "x86" then
|
if target_arch ~= "x86" and target_arch ~= "x86_64" then
|
||||||
settings.cc.flags:Add("-m32")
|
|
||||||
settings.link.flags:Add("-m32")
|
|
||||||
elseif target_arch == "x86_64" then
|
|
||||||
settings.cc.flags:Add("-m64")
|
|
||||||
settings.link.flags:Add("-m64")
|
|
||||||
else
|
|
||||||
print("Unknown Architecture '" .. arch .. "'. Supported: x86, x86_64")
|
print("Unknown Architecture '" .. arch .. "'. Supported: x86, x86_64")
|
||||||
os.exit(1)
|
os.exit(1)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue