In Darwin's hints, only add -no-cpp-precomp to ccflags if it's not an error.
authorNicholas Clark <nick@ccl4.org>
Tue, 5 Apr 2011 10:32:08 +0000 (11:32 +0100)
committerNicholas Clark <nick@ccl4.org>
Tue, 5 Apr 2011 10:32:08 +0000 (11:32 +0100)
commite727fa2798ffc794cbb99211cf1a5499354bc1d5
treeba3d5b43f907fe82dfdbc13275c336077a9e8b20
parent7287d036f77a8e36b33684f04817b77934c30178
In Darwin's hints, only add -no-cpp-precomp to ccflags if it's not an error.

Previously -no-cpp-precomp was added uncondtionally to cppflags and ccflags.
Apple's compiler accepts this unconditionally. gcc 4.5 warns about it, but
ignores it. gcc 4.6 treats the unknown flag as an error. Hence test whether
the flag causes problems, and only add it if it does not.

(Searching with Google suggests that this flag has been unnecessary on OS X
for some time. However, there's no clear documentation about it to confirm
when it stopped being necessary.)
hints/darwin.sh