Lothar Gesslein dixit:
>Methinks it's very neat, especially for developers who rebuild quite
>often.
Especially developers should avoid such things, distcc too, in order
to get reliable, reproducable results instead of Heisenbugs.
Just my 4+ years of experience leading a BSD operating system project,
and this opinion is taken over from another 10+ year old OS project
and has been validated by personal experience.
On the other hand, if people want to do such things, I'd say go ahead.
Quoting is a little more difficult, though. I don't think GNU make has
something like BSD ${varname:Q} which is what we need. In no case will
you add the quotation marks to the variables themselves. I.e. you don't
>So, i do $(TARGET_CC):= "ccache $(TARGET_CC)".
Instead, you'd fix the places where ${TARGET_CC} is used inappropriately.
For instance:
target:
${SHELL} some_script ${TARGET_CC} ...
${TARGET_CC} ${TARGET_CFLAGS} -o $@ $>
${MAKE} -C foo TARGET_CC="${TARGET_CC}" bar
Change the first line (because the shell script expects the compiler
argument only as one positional parameter) but not the second or
third line.
bye,
//mirabile
--
I believe no one can invent an algorithm. One just happens to hit upon it
when God enlightens him. Or only God invents algorithms, we merely copy them.
If you don't believe in God, just consider God as Nature if you won't deny
existence. -- Coywolf Qi Hunt
_______________________________________________
freewrt-developers mailing list
[email protected]
https://www.freewrt.org/lists/listinfo/freewrt-developers