[cfe-dev] Problem on Mac OS X with micro version.
Eric Christopher
echristo at apple.com
Tue Apr 26 22:46:51 PDT 2011
On Apr 25, 2011, at 12:01 PM, Jean-Daniel Dupas wrote:
> Hello,
>
> In getDarwinDefines() (Targets.cpp:78), there is an assertion that prevent running if triple contains a micro version (like darwin 10.7.3 for instance).
> line 124: assert(Rev == 0 && "invalid triple, unexpected micro version!");
>
> This assertion is reached when invoking clang -cc1 without passing an explicit triple which should never append on normal usage, but it prevents running the clang test suite on some machine (like MacBook Pro 2011), as they are sold with a custom OS version.
>
> Clang assert on all tests that do not explicitly specify a triple target (that is most tests).
> Maybe the minor rev should be simply ignored and this assertion removed ?
I've gotten another report of this and can finally duplicate it using a -triple on the command line. (I couldn't under normal use on my machine).
It's easily possible that the assert should be removed. I'm looking.
-eric
More information about the cfe-dev
mailing list