Skip to content

Commit

Permalink
LLVM & Clang v17.0.5 now support source_location properly
Browse files Browse the repository at this point in the history
  • Loading branch information
jonwis committed Nov 25, 2023
1 parent 5e6405a commit 18688c3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
4 changes: 4 additions & 0 deletions Directory.Build.Props
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
Optionally add /t:<project> to only build a given a solution project:
msbuild /m /p:Configuration=Debug,Platform=x64,Clang=1 cppwinrt.sln /t:cppwinrt
If you have deployed the LLVM toolset elsewhere, add its path to the configuration:
msbuild /m /p:Configuration=Debug,Platform=x64,Clang=1,LLVMToolsVersion=17.0.5,LLVMInstallDir=C:\llvm cppwinrt.sln
-->

<PropertyGroup Condition="'$(Clang)'=='1'">
Expand Down
7 changes: 1 addition & 6 deletions test/test_cpp20/custom_error.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,7 @@ namespace
}
}

#if defined(__clang__) && defined(_MSC_VER)
// FIXME: Blocked on __cpp_consteval, see:
// * https://github.com/microsoft/cppwinrt/pull/1203#issuecomment-1279764927
// * https://github.com/llvm/llvm-project/issues/57094
TEST_CASE("custom_error_logger", "[!shouldfail]")
#elif defined(_LIBCPP_VERSION) && _LIBCPP_VERSION < 160000
#if defined(_LIBCPP_VERSION) && _LIBCPP_VERSION < 170000
// <source_location> not available in libc++ before LLVM 16
TEST_CASE("custom_error_logger", "[!shouldfail]")
#else
Expand Down

0 comments on commit 18688c3

Please sign in to comment.