mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Clang driver support.
This commit is contained in:
parent
8ca7933653
commit
6af382ade1
|
@ -376,6 +376,8 @@ function OptCCompiler(name, default_driver, default_c, default_cxx, desc)
|
||||||
SetDriversCL(settings)
|
SetDriversCL(settings)
|
||||||
elseif option.driver == "gcc" then
|
elseif option.driver == "gcc" then
|
||||||
SetDriversGCC(settings)
|
SetDriversGCC(settings)
|
||||||
|
elseif option.driver == "clang" then
|
||||||
|
SetDriversClang(settings)
|
||||||
else
|
else
|
||||||
error(option.driver.." is not a known c/c++ compile driver")
|
error(option.driver.." is not a known c/c++ compile driver")
|
||||||
end
|
end
|
||||||
|
@ -393,7 +395,7 @@ function OptCCompiler(name, default_driver, default_c, default_cxx, desc)
|
||||||
local printhelp = function(option)
|
local printhelp = function(option)
|
||||||
local a = ""
|
local a = ""
|
||||||
if option.desc then a = "for "..option.desc end
|
if option.desc then a = "for "..option.desc end
|
||||||
print("\t"..option.name.."=gcc|cl")
|
print("\t"..option.name.."=gcc|cl|clang")
|
||||||
print("\t\twhat c/c++ compile driver to use"..a)
|
print("\t\twhat c/c++ compile driver to use"..a)
|
||||||
print("\t"..option.name..".c=FILENAME")
|
print("\t"..option.name..".c=FILENAME")
|
||||||
print("\t\twhat c compiler executable to use"..a)
|
print("\t\twhat c compiler executable to use"..a)
|
||||||
|
|
Loading…
Reference in a new issue