Author: Matt Arsenault Date: 2026-10-06T16:55:44Z New Revision: b3fdd967fbc049ec5ec5bed845670600aeaf8bef
URL: https://github.com/llvm/llvm-project/commit/b3fdd967fbc049ec5ec5bed845670600aeaf8bef DIFF: https://github.com/llvm/llvm-project/commit/b3fdd967fbc049ec5ec5bed845670600aeaf8bef.diff LOG: clang: Fix nostdlib.c test with CLANG_USE_XCSELECT (#229418) With CLANG_USE_XCSELECT, the driver injects the host macOS SDK as the sysroot for the i386-apple-darwin run line. The SDK does not support i386, so -Wincompatible-sysroot fires. Pass --no-xcselect, as other darwin driver tests do. Co-authored-by: Claude Opus 5.5 <[email protected]> Added: Modified: clang/test/Driver/nostdlib.c Removed: ################################################################################ diff --git a/clang/test/Driver/nostdlib.c b/clang/test/Driver/nostdlib.c index ffc20ff6c0719..21f6fafd7b07f 100644 --- a/clang/test/Driver/nostdlib.c +++ b/clang/test/Driver/nostdlib.c @@ -6,7 +6,7 @@ // Most of the toolchains would check for -nostartfiles and -nostdlib // in a short-circuiting boolean expression, so if both of the preceding // options were present, the second would warn about being unused. -// RUN: %clang -### -Wno-liblto -nostartfiles -nostdlib --target=i386-apple-darwin %s \ +// RUN: %clang -### -Wno-liblto -nostartfiles -nostdlib --target=i386-apple-darwin --no-xcselect %s \ // RUN: 2>&1 | FileCheck %s -check-prefix=ARGSCLAIMED // ARGSCLAIMED-NOT: warning: _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
