[llvm-lib] Ignore /NODEFAULTLIB flag
authorPengxuan Zheng <pzheng@quicinc.com>
Sat, 2 Jul 2022 02:23:03 +0000 (19:23 -0700)
committerPengxuan Zheng <pzheng@quicinc.com>
Tue, 5 Jul 2022 17:27:50 +0000 (10:27 -0700)
It doesn't look like there is anything llvm-lib needs to handle based on
Microsoft's description of the flag.

https://docs.microsoft.com/en-us/cpp/build/reference/managing-a-library?view=msvc-170

Reviewed By: thakis

Differential Revision: https://reviews.llvm.org/D129032

llvm/lib/ToolDrivers/llvm-lib/Options.td

index 0d97f77..9d969b0 100644 (file)
@@ -44,5 +44,7 @@ def help_q : Flag<["/??", "-??", "/?", "-?"], "">, Alias<help>;
 //==============================================================================
 
 def ltcg : F<"ltcg">;
+def nodefaultlib: P<"nodefaultlib", "">;
+def nodefaultlib_all: F<"nodefaultlib">;
 def nologo : F<"nologo">;
 def subsystem : P<"subsystem", "">;