From c3a50879dfca9ab06ebfe52f48019bb6ac40bb4d Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Fri, 7 Jun 2024 11:45:10 -0700 Subject: [PATCH] [Driver,test] Add -Wno-msvc-not-found to gcc-param.c Fixes: 56c4971d33230607a7329bb831b6c8588231e872 If the default target triple uses visualstudio::Linker::ConstructJob, when a MSVC installation cannot be found, there will be a -Wmsvc-not-found diagnostic, which is turned to an error due to -Werror. We have many driver tests that don't specify --target= and would get a -Wmsvc-not-found warning, but this might be the only that uses -Werror and is not skipped by a `UNSUPPORTED`. --- clang/test/Driver/gcc-param.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/test/Driver/gcc-param.c b/clang/test/Driver/gcc-param.c index 4672e1156ce7..7ae084784bf9 100644 --- a/clang/test/Driver/gcc-param.c +++ b/clang/test/Driver/gcc-param.c @@ -1,2 +1,2 @@ // RUN: touch %t.o -// RUN: %clang -Werror --param ssp-buffer-size=1 %t.o -### +// RUN: %clang -Werror -Wno-msvc-not-found --param ssp-buffer-size=1 %t.o -###