Skip to content

Commit 6e7eeed

Browse files
committed
build: clang-20.1 workaround added to package_info
1 parent 0c52858 commit 6e7eeed

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

conanfile.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,3 +363,11 @@ def package_info(self):
363363
self.cpp_info.components["core"].cxxflags.append("/utf-8")
364364

365365
self.cpp_info.components["systems"].requires = ["core"]
366+
367+
# https://github.com/llvm/llvm-project/issues/131410
368+
if (
369+
compiler == "clang"
370+
and Version(compiler.version).major == 20
371+
and Version(compiler.version).minor == 1
372+
):
373+
self.cpp_info.components["core"].cxxflags.append("-Wno-unused-result")

0 commit comments

Comments
 (0)