================
@@ -5572,7 +5572,8 @@ def : Flag<["-"], "nocudalib">, Alias<nogpulib>;
 def gpulibc : Flag<["-"], "gpulibc">, Visibility<[ClangOption, CC1Option, 
FlangOption, FC1Option]>,
   HelpText<"Link the LLVM C Library for GPUs">;
 def nogpulibc : Flag<["-"], "nogpulibc">, Visibility<[ClangOption, CC1Option, 
FlangOption, FC1Option]>;
-def nodefaultlibs : Flag<["-"], "nodefaultlibs">;
+def nodefaultlibs : Flag<["-"], "nodefaultlibs">,
+  Visibility<[ClangOption, FlangOption, CLOption, DXCOption]>;
----------------
banach-space wrote:

Just a drive-by comment.

> From what i was able to tell when I changed this, the lack of an explicit 
> visibility implied these 4, but perhaps I was mistaken.

This should be verifiable by checking Options.inc file in the build directory 
_before_ and _after_ change. Options.inc is the C++ files generated from 
Options.td when building `clangDriver`. Please use that as your guidance.

https://github.com/llvm/llvm-project/pull/108868
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to