jkn píše v Čt 09. 02. 2012 v 04:01 -0800:
> def set_options(opt):
> # ....
> opt.tool_options('compiler_cc')
This is just part of C compiler detection. Not the most important.
>
> Presumably this causes gcc to be used for compilation, with certain
> flags set, and maybe other things.
>
> In my case, I want to run my cross-compiler (under scratchbox2, so eg.
> '"sb2 gcc ..." instead of just "gcc ...").
>
> So what kinds of things would I have so do so that in set_options(opt)
> above I can say something like
>
> # opt.tool_options('compiler_cc')
> opt.tool_options('xcompiler_cc') # xcompiler_cc is something I
> prepared elsewhere for my cross-compiler
Download the waf source code and look for files in folders
waf_src/waflib/Tools
waf_src/waflib/extras
In wscript look for lines like:
80 conf.check_tool('gcc')
138 conf.env.CC = conf.env.LSBCC
139 conf.env.LINK_CC = conf.env.LSBCC
NOTE: we use waf 1.5. Waf 1.6 has slightly different syntax.
--
You received this message because you are subscribed to the Google Groups
"PyInstaller" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/pyinstaller?hl=en.