686a687,698
> # Test for the presence of C++11 static asserts. If the compiler lacks
> # support for static asserts, base/compiler.hh enables a macro that
> # removes any static asserts in the code.
> def CheckStaticAssert(context):
> context.Message("Checking for C++11 static_assert support...")
> ret = context.TryCompile('''
> static_assert(1, "This assert is always true");
> ''', extension=".cc")
> context.env.Append(HAVE_STATIC_ASSERT=ret)
> context.Result(ret)
> return ret
>
692c704,706
< custom_tests = { 'CheckLeading' : CheckLeading })
---
> custom_tests = { 'CheckLeading' : CheckLeading,
> 'CheckStaticAssert' : CheckStaticAssert,
> })
697a712,714
> # Check for C++11 features we want to use if they exist
> conf.CheckStaticAssert()
>
926c943
< ]
---
> 'HAVE_STATIC_ASSERT']