From 8660f7755238786d3e42fa0043ca2c528603bc6a Mon Sep 17 00:00:00 2001 From: jzmaddock Date: Fri, 7 Feb 2014 13:08:03 +0000 Subject: [PATCH] Tentative fix for Clang build configuration issue. --- test/Jamfile.v2 | 8 +++++++- test/cmd_line_check.cpp | 9 +++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 test/cmd_line_check.cpp diff --git a/test/Jamfile.v2 b/test/Jamfile.v2 index ba8f7804..533df58e 100644 --- a/test/Jamfile.v2 +++ b/test/Jamfile.v2 @@ -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 : clang:"-std=c++11 -Wimplicit-fallthrough" on all ] + [ compile boost_fallthrough_test.cpp : [ check-target-builds has_clang_implicit_fallthrough "Clang implicit fallthrough" : clang:"-std=c++11 -Wimplicit-fallthrough" on all ] ] ; + +obj has_clang_implicit_fallthrough : cmd_line_check.cpp : + clang:"-std=c++11 -Wimplicit-fallthrough" on all ; + +explicit has_clang_implicit_fallthrough ; + diff --git a/test/cmd_line_check.cpp b/test/cmd_line_check.cpp new file mode 100644 index 00000000..33dff646 --- /dev/null +++ b/test/cmd_line_check.cpp @@ -0,0 +1,9 @@ + +#ifndef __clang__ +# error "This test is for Clang only" +#endif + +int main() +{ + return 0; +} \ No newline at end of file