Tentative fix for Clang build configuration issue.

This commit is contained in:
jzmaddock
2014-02-07 13:08:03 +00:00
parent 08392fd952
commit 8660f77552
2 changed files with 16 additions and 1 deletions

View File

@ -65,5 +65,11 @@ test-suite config
]
[ compile-fail threads/test_thread_fail1.cpp ]
[ compile-fail threads/test_thread_fail2.cpp ]
[ compile boost_fallthrough_test.cpp : <toolset>clang:<cxxflags>"-std=c++11 -Wimplicit-fallthrough" <warnings-as-errors>on <warnings>all ]
[ compile boost_fallthrough_test.cpp : [ check-target-builds has_clang_implicit_fallthrough "Clang implicit fallthrough" : <toolset>clang:<cxxflags>"-std=c++11 -Wimplicit-fallthrough" <warnings-as-errors>on <warnings>all ] ]
;
obj has_clang_implicit_fallthrough : cmd_line_check.cpp :
<toolset>clang:<cxxflags>"-std=c++11 -Wimplicit-fallthrough" <warnings-as-errors>on <warnings>all ;
explicit has_clang_implicit_fallthrough ;

9
test/cmd_line_check.cpp Normal file
View File

@ -0,0 +1,9 @@
#ifndef __clang__
# error "This test is for Clang only"
#endif
int main()
{
return 0;
}