[flang-commits] [clang] [flang] [flang][Driver] Support -nostdlib and -nodefaultlibs (PR #108868)

Mészáros Gergely via flang-commits flang-commits at lists.llvm.org
Tue Dec 3 11:20:39 PST 2024


================
@@ -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]>;
----------------
Maetveis wrote:

I don't see anything invoking clang-cl if searching for `-nodefaultlibs` in clang tests: https://github.com/search?q=repo%3Allvm%2Fllvm-project+nodefaultlibs+path%3Aclang%2Ftest&type=code I can check tomorrow (Europe time) if indeed the default visibility extends to clang-cl.

https://github.com/llvm/llvm-project/pull/108868


More information about the flang-commits mailing list