mirror of
https://github.com/nasa/trick.git
synced 2024-12-18 20:57:55 +00:00
Build fails on Ubuntu 16.04
clang changed a call in 3.8.0 from uppercase to lowercase. I changed pp.getBuiltinInfo().InitializeBuiltins to pp.getBuiltinInfo().initializeBuiltins refs #174
This commit is contained in:
parent
af781d5383
commit
2381c487d1
@ -140,7 +140,11 @@ int main( int argc , char * argv[] ) {
|
||||
// Tell the preprocessor to use its default predefines
|
||||
clang::PreprocessorOptions & ppo = ci.getPreprocessorOpts() ;
|
||||
ppo.UsePredefines = true;
|
||||
#if (__clang_major__ == 3) && (__clang_minor__ >= 8)
|
||||
pp.getBuiltinInfo().initializeBuiltins(pp.getIdentifierTable(), pp.getLangOpts());
|
||||
#else
|
||||
pp.getBuiltinInfo().InitializeBuiltins(pp.getIdentifierTable(), pp.getLangOpts());
|
||||
#endif
|
||||
// Add all of the #define from the command line to the default predefines.
|
||||
hsd.addDefines ( defines ) ;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user