Author: Fangrui Song
Date: 2024-06-07T11:45:10-07:00
New Revision: c3a50879dfca9ab06ebfe52f48019bb6ac40bb4d

URL: 
https://github.com/llvm/llvm-project/commit/c3a50879dfca9ab06ebfe52f48019bb6ac40bb4d
DIFF: 
https://github.com/llvm/llvm-project/commit/c3a50879dfca9ab06ebfe52f48019bb6ac40bb4d.diff

LOG: [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`.

Added: 
    

Modified: 
    clang/test/Driver/gcc-param.c

Removed: 
    


################################################################################
diff  --git a/clang/test/Driver/gcc-param.c b/clang/test/Driver/gcc-param.c
index 4672e1156ce7b..7ae084784bf91 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 -###


        
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to