[flang-commits] [clang] [flang] [flang][Driver] Support -nodefaultlibs, -nostartfiles and -nostdlib (PR #72601)

Fangrui Song via flang-commits flang-commits at lists.llvm.org
Mon Nov 27 08:31:29 PST 2023


================
@@ -5152,7 +5152,8 @@ def : Flag<["-"], "nocudalib">, Alias<nogpulib>;
 def gpulibc : Flag<["-"], "gpulibc">, Visibility<[ClangOption, CC1Option]>,
   HelpText<"Link the LLVM C Library for GPUs">;
 def nogpulibc : Flag<["-"], "nogpulibc">, Visibility<[ClangOption, CC1Option]>;
-def nodefaultlibs : Flag<["-"], "nodefaultlibs">;
----------------
MaskRay wrote:

I think these options are primarily for ELF where some may apply to Mach-O.

These options likely don't make sense for `dxc.exe` from Windows.

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


More information about the flang-commits mailing list