Discussion:
[Scons-users] Keeping space in TEMPFILEPREFIX
ZEISSLOFF Thibaut
2018-10-10 15:12:37 UTC
Permalink
Hello,

I'm currently using SCons (3.0.1) to build some embedded Software under Windows, using IAR compiler.
I can have quite long command lines and my compiler handles extending the command line by file therefore I use TEMPFILE for that purpose.

Thing is, the compiler guide says the following on this option :
Syntax -f filename
Parameters See Rules for specifying a filename or directory as parameters, page 250.
Description Use this option to make the compiler read command line options from the named file[...]

Please note that there is a space between "-f" and the file name.

When I register env['TEMPFILEPREFIX'] to '-f ' (with space), it becomes '-f' after substitution.
in SCons\Platform\__init__.py at line 215
prefix = env.subst('$TEMPFILEPREFIX')
iccarm.exe -fc:\users\[
]\appdata\local\temp\tmpljsbed.lnk
Is there any way I can specify things to maintain this space in generated command line ?
(I managed to re-implement TempFileMunge class to do that, but then I loose recursive substitution).

I am willing to make some contributions if needed but it seems the mailing list is the place to start !

Best regards,


Thibaut ZEISSLOFF
Software Engineer
Electronics Service
________________________________
T +33388495050
***@hagergroup.com<mailto:***@hagergroup.com>

Hager Electro SAS

67210 Obernai
France


SAS au capital de € 76 976 000
N° id. TVA FR 57 675 980 114
RC Saverne B 67 59 80 114
N° Siret 675 980 114 00010
[cid:***@2400e9db.43a5f22a]<http://www.hagergroup.com/>
Follow us:

[cid:***@8a3d121f.41b25f21]<https://www.facebook.com/hagergroup> [cid:***@afe56afc.49b7ebb0] <http://twitter.com/hagergroup> [cid:***@99332a12.4da24504] <http://www.linkedin.com/company/15100> [cid:***@8521b886.42ae79a5] <https://plus.google.com/u/0/117920350073532292886/posts#117920350073532292886/posts> [cid:***@7bb57086.44bb49b7] <http://www.youtube.com/user/hagergroup> [cid:***@39e3ee6f.4cbc0c9e] <https://www.pinterest.com/hagergroup/> [cid:***@9ca39c10.43a594b2] <https://www.instagram.com/hagergroup/>
Loading...