<div dir="ltr">I've added the AddPath()'s for my system headers, but now get errors like:<div><br></div><div><div>.../bin/../lib/clang/3.3/include/stdarg.h:30:9: error: unknown type name '__builtin_va_list'; did you mean '__builti</div>
<div>.../osse/core/inc/ossmath.h:48:11: error: use of undeclared identifier '__builtin_sqrt'; did you mean '__builtin_</div><div><br></div><div><br></div><div style>I'm guessing this is due to how I'm initializing the builtin context:</div>
<div style><br></div><div style><div> Builtin::Context builtinContext ;</div><div><br></div><div> builtinContext.InitializeTarget( *pTargetInfo ) ;</div><div><br></div><div> ASTContext * pASTcontext = new ASTContext( languageOptions,</div>
<div> sourceManager,</div><div> pTargetInfo,</div><div> identifierTable,</div>
<div> selectorTable,</div><div> builtinContext,</div><div> 0 /* size_reserve*/ ) ;</div>
<div><br></div><div style>I tried adding:</div><div style><br></div></div><div> builtinContext.InitializeBuiltins( identifierTable, languageOptions ) ;<br></div><div><br></div><div style>before the ASTContext creation, but this doesn't appear to have an effect? My Langopts now include:</div>
<div style><br></div><div style><div> languageOptions.GNUMode = 1 ;</div><div> languageOptions.CXXExceptions = 1 ;</div><div> languageOptions.RTTI = 1 ;</div><div> languageOptions.Bool = 1 ;</div>
<div> languageOptions.CPlusPlus = 1 ;</div><div> languageOptions.WChar = 1 ; </div><div><br></div><div style>and I see that NoBuiltin is already 0 by default?</div><div style><br></div></div><div style>
-- </div>Peeter
</div></div>