ci(deps): apply Wno-missing-template-arg-list workaround to Linux clang

grpc 1.50.1 hits -Werror=missing-template-arg-list-after-template-kw on
clang-19+. macOS clang already had this workaround in the conan profile;
mirror it to the Linux branch, gated on compiler==clang.
This commit is contained in:
Nicholas Dudfield
2026-04-30 15:20:03 +07:00
parent 8d609f9cf3
commit 43a37afb51

View File

@@ -116,6 +116,14 @@ runs:
[conf]
tools.build:compiler_executables={"c": "/usr/bin/${{ inputs.cc }}", "cpp": "/usr/bin/${{ inputs.cxx }}"}
EOF
# gRPC 1.50.1 trips clang-19+ -Werror=missing-template-arg-list-after-template-kw.
# Same workaround as the macOS branch below, but only for clang where the flag exists.
if [ "${{ inputs.compiler }}" = "clang" ]; then
cat >> ~/.conan2/profiles/default <<EOF
tools.build:cxxflags=["-Wno-missing-template-arg-list-after-template-kw"]
EOF
fi
fi
# Add macOS-specific conf if needed