Keeping space in TEMPFILEPREFIX

ZEISSLOFF Thibaut <[email protected]>
Newsgroups gmane.comp.programming.tools.scons.user
Message-ID <E30C83F3AA82AE458ED6D151BADB20FCEE9C9B03@BLKSMBXP04.fra.hager.corp>
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')

Which leads to final executed command :
> 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
[email protected]<mailto:[email protected]>

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:[email protected]]<http://www.hagergroup.com/>
Follow us:

[cid:[email protected]]<https://www.facebook.com/hagergroup>  [cid:[email protected]] <http://twitter.com/hagergroup>   [cid:[email protected]] <http://www.linkedin.com/company/15100>   [cid:[email protected]] <https://plus.google.com/u/0/117920350073532292886/posts#117920350073532292886/posts>   [cid:[email protected]] <http://www.youtube.com/user/hagergroup>   [cid:[email protected]] <https://www.pinterest.com/hagergroup/>   [cid:[email protected]] <https://www.instagram.com/hagergroup/>

_______________________________________________
Scons-users mailing list
[email protected]
https://pairlist4.pair.net/mailman/listinfo/scons-users
image905999.JPG (image/jpeg, 16.3 KB) - not displayed
image185bd6.PNG (image/png, 1.3 KB) - not displayed
image0a3840.PNG (image/png, 1.3 KB) - not displayed
image1a271b.PNG (image/png, 1.3 KB) - not displayed
imageebb56d.PNG (image/png, 1.5 KB) - not displayed
image8e179e.PNG (image/png, 1.3 KB) - not displayed
image848e65.PNG (image/png, 1.4 KB) - not displayed
imagea55346.PNG (image/png, 1.6 KB) - not displayed
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.