[Scons-users] Setting default language for CheckLib

Dirk Bächle tshortik at gmx.de
Fri Aug 15 12:30:24 EDT 2014


Hi Florian,

On 15.08.2014 18:12, Gary Oberbrunner wrote:
>
>
>
> On Fri, Aug 15, 2014 at 4:49 AM, Florian Lindner <mailinglists at xgm.de 
> <mailto:mailinglists at xgm.de>> wrote:
>
>     Hello,
>
>     SConf.CheckLib and alike have a language parameter that is "C" for
>     default.
>     Since my projekt is C++ I need to pass language="C++" to every
>     CheckLib
>     call. Is there a way to set a default language for a project?
>
>
> Hi Florian; no, I don't think so.
>
I guess you could write your own wrapper function, perhaps with the help 
of functools.partial()? See 
https://docs.python.org/2/library/functools.html for its syntax and a 
simple example.

Regards,

Dirk

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://four.pairlist.net/pipermail/scons-users/attachments/20140815/28a61d41/attachment.html>


More information about the Scons-users mailing list