mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Forward CFLAGS and LDFLAGS to the compiler (Closes DDRace/teeworlds#212)
This commit is contained in:
parent
9e3cd78369
commit
956532d7cd
9
bam.lua
9
bam.lua
|
@ -144,6 +144,15 @@ function build(settings)
|
|||
--settings.objdir = Path("objs")
|
||||
settings.cc.Output = Intermediate_Output
|
||||
|
||||
cflags = os.getenv("CFLAGS")
|
||||
if cflags then
|
||||
settings.cc.flags:Add(cflags)
|
||||
end
|
||||
ldflags = os.getenv("LDFLAGS")
|
||||
if ldflags then
|
||||
settings.link.flags:Add(ldflags)
|
||||
end
|
||||
|
||||
if config.compiler.driver == "cl" then
|
||||
settings.cc.flags:Add("/wd4244")
|
||||
settings.cc.flags:Add("/wd4291")
|
||||
|
|
Loading…
Reference in a new issue