[Scons-users] Keeping space in TEMPFILEPREFIX
ZEISSLOFF Thibaut
thibaut.zeissloff at hagergroup.com
Wed Oct 10 11:12:37 EDT 2018
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
thibaut.zeissloff at hagergroup.com<mailto:thibaut.zeissloff at 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:image905999.JPG at 2400e9db.43a5f22a]<http://www.hagergroup.com/>
Follow us:
[cid:image185bd6.PNG at 8a3d121f.41b25f21]<https://www.facebook.com/hagergroup> [cid:image0a3840.PNG at afe56afc.49b7ebb0] <http://twitter.com/hagergroup> [cid:image1a271b.PNG at 99332a12.4da24504] <http://www.linkedin.com/company/15100> [cid:imageebb56d.PNG at 8521b886.42ae79a5] <https://plus.google.com/u/0/117920350073532292886/posts#117920350073532292886/posts> [cid:image8e179e.PNG at 7bb57086.44bb49b7] <http://www.youtube.com/user/hagergroup> [cid:image848e65.PNG at 39e3ee6f.4cbc0c9e] <https://www.pinterest.com/hagergroup/> [cid:imagea55346.PNG at 9ca39c10.43a594b2] <https://www.instagram.com/hagergroup/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20181010/3d391b14/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image905999.JPG
Type: image/jpeg
Size: 16704 bytes
Desc: image905999.JPG
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20181010/3d391b14/attachment-0001.jpe>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image185bd6.PNG
Type: image/png
Size: 1332 bytes
Desc: image185bd6.PNG
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20181010/3d391b14/attachment-0007.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image0a3840.PNG
Type: image/png
Size: 1381 bytes
Desc: image0a3840.PNG
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20181010/3d391b14/attachment-0008.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image1a271b.PNG
Type: image/png
Size: 1368 bytes
Desc: image1a271b.PNG
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20181010/3d391b14/attachment-0009.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: imageebb56d.PNG
Type: image/png
Size: 1556 bytes
Desc: imageebb56d.PNG
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20181010/3d391b14/attachment-0010.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image8e179e.PNG
Type: image/png
Size: 1338 bytes
Desc: image8e179e.PNG
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20181010/3d391b14/attachment-0011.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image848e65.PNG
Type: image/png
Size: 1451 bytes
Desc: image848e65.PNG
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20181010/3d391b14/attachment-0012.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: imagea55346.PNG
Type: image/png
Size: 1643 bytes
Desc: imagea55346.PNG
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20181010/3d391b14/attachment-0013.png>
More information about the Scons-users
mailing list