Skip to content

Commit

Permalink
Fixing issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
sean-parent committed Dec 6, 2024
1 parent 4a67fa1 commit edd6f0b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
16 changes: 8 additions & 8 deletions cmake/stlab/development/Clang.cmake
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
set( stlab_Clang_base_flags -Wall -Werror -ftemplate-backtrace-limit=0 -DBOOST_NO_AUTO_PTR=1 )
set( stlab_Clang_debug_flags -gdwarf-3 )
set( stlab_Clang_coverage_flags --coverage )
set( stlab_Clang_release_flags )
set(stlab_Clang_base_flags -Wall -Werror -ftemplate-backtrace-limit=0)
set(stlab_Clang_debug_flags -gdwarf-3)
set(stlab_Clang_coverage_flags --coverage)
set(stlab_Clang_release_flags)

string(CONCAT generator
"${stlab_Clang_base_flags};"
"$<$<OR:$<CONFIG:DEBUG>,"
"$<CONFIG:RELWITHDEBINFO>>:${stlab_Clang_debug_flags};>"
"$<CONFIG:RELWITHDEBINFO>>:${stlab_Clang_debug_flags};>"
"$<$<OR:$<CONFIG:RELEASE>,"
"$<CONFIG:RELWITHDEBINFO>,"
"$<CONFIG:MINSIZEREL>>:${stlab_Clang_release_flags};>"
"$<CONFIG:RELWITHDEBINFO>,"
"$<CONFIG:MINSIZEREL>>:${stlab_Clang_release_flags};>"
"$<$<AND:$<CONFIG:DEBUG>,"
"$<BOOL:${stlab.coverage}>>:${stlab_Clang_debug_flags};>")
"$<BOOL:${stlab.coverage}>>:${stlab_Clang_debug_flags};>")

target_compile_options(development INTERFACE
$<$<CXX_COMPILER_ID:Clang>:${generator}>)
Expand Down
2 changes: 1 addition & 1 deletion test/future_then_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -795,7 +795,7 @@ BOOST_AUTO_TEST_CASE(future_continuation_async_move_only_container) {
check_valid_future(sut);
auto result = stlab::await(std::move(sut));

BOOST_REQUIRE_EQUAL(3, result.size());
BOOST_REQUIRE_EQUAL(std::size_t{3}, result.size());
BOOST_REQUIRE_EQUAL(10, result[0].member());
BOOST_REQUIRE_EQUAL(42, result[1].member());
BOOST_REQUIRE_EQUAL(50, result[2].member());
Expand Down

0 comments on commit edd6f0b

Please sign in to comment.