Re: Per target env variables

Hua Yanghao <[email protected]>
Newsgroups gmane.comp.programming.tools.scons.user
Message-ID <CAPTzt1B_=7B0AAZSgkb4knD5r0QrCkhZbnRtLgHc=U3MAzLURw@mail.gmail.com>
On Thu, Sep 6, 2018 at 2:09 AM Jonathon Reinhart
<[email protected]> wrote:
>

>     env.Program('hello', 'hello.c',
>         CFLAGS = env.get('CFLAGS', []) + ['-Os'],
>     )

This can even be applied to a per-object basis already, this is what I do:
obj1 = Object(f, CFLAGS = old_cflags + flags1)
...
objN = Object(f, CFLAGS = old_cflags + flagsN)

This way you can customize for each different object a different set
of compilation flags.
_______________________________________________
Scons-users mailing list
[email protected]
https://pairlist4.pair.net/mailman/listinfo/scons-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.