forked from boostorg/config
Tentative fix for Clang build configuration issue.
This commit is contained in:
@@ -65,5 +65,11 @@ test-suite config
|
|||||||
]
|
]
|
||||||
[ compile-fail threads/test_thread_fail1.cpp ]
|
[ compile-fail threads/test_thread_fail1.cpp ]
|
||||||
[ compile-fail threads/test_thread_fail2.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
9
test/cmd_line_check.cpp
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
|
||||||
|
#ifndef __clang__
|
||||||
|
# error "This test is for Clang only"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
int main()
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
Reference in New Issue
Block a user