[Scons-users] What are the $( ,,, $) for

Andrew Featherstone andrew.featherstone at gmail.com
Sat Mar 8 17:09:45 EST 2014


On 03/08/2014 09:39 PM, Russell, J.J. wrote:

> This one has got to be easy. This is about the syntax of _CPPINCFLAGS and other similar variables. So

>

> _CPPINCFLAGS = $( ${_concat(INCPREFIX, CPPPATH, INCSUFFIX, __env__, RDirs, TARGET, SOURCE)} $)

>

> What is the purpose of leading $( and trailing $)’s. They get emitted when the default definition of $CCCOMSTR is used, so they seemingly get passed to the compiler, but they really can’t since a cut and paste of the compile command results in GCC rejecting them as bad syntax. (I find cutting and pasting the exact compile command useful when tracking down obscure errors. I can just modify the command, but those syntactic elements are annoying.)

>

> As a bonus question, what does the ‘$’ before the ‘{_concat do? This must have to do with deferring the translation, but that’s kinda of vague.

>

> Jim Russell

> _______________________________________________

> Scons-users mailing list

> Scons-users at scons.org

> http://four.pairlist.net/mailman/listinfo/scons-users

See http://www.scons.org/doc/2.3.1/HTML/scons-user.html Chapter 2,
section 2.3, as well as Appendix A.

As an aside, If I visit scons-user/index.html I get a blank page. Anchor
tags in the SCons documentation would also make linking to the relevant
sections in the documentation much easier.

Andrew


More information about the Scons-users mailing list