[clang] [Multilib] Extend the Multilib system to support an IncludepPath field. (PR #146651)
Simon Tatham via cfe-commits
cfe-commits at lists.llvm.org
Thu Jul 10 09:13:40 PDT 2025
================
@@ -0,0 +1,28 @@
+
+# REQUIRES: shell
+# UNSUPPORTED: system-windows
+
+# This test demonstrates the new "IncludePath" field.
+# This field allows specifying include paths through
+# multilib.yaml configuration using relative paths.
+# Absolute paths should be rejected by the driver
+# with an appropriate diagnostic message.
+#
+# This test verifies that passing an absolute path
+# (/include) to IncludePath triggers the expected
+# error.
+
+# # RUN: %clang --target=aarch64-none-elf --multi-lib-config=%s %s -### -o /dev/null 2>&1 \
----------------
statham-arm wrote:
I'm a bit surprised that this double `#` doesn't stop the run from happening!
Also slightly surprised that you didn't need a `not` on the command line. Does the clang driver not return a failure status when it finds an error in `multilib.yaml`?
https://github.com/llvm/llvm-project/pull/146651
More information about the cfe-commits
mailing list