[llvm] 4f12a72 - [llvm-lib] Ignore /LTCG option

Pengxuan Zheng via llvm-commits llvm-commits at lists.llvm.org
Fri May 27 11:39:13 PDT 2022


Author: Pengxuan Zheng
Date: 2022-05-27T11:38:42-07:00
New Revision: 4f12a721f1790f3fafadcd0ad4ce456bb0e04677

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

LOG: [llvm-lib] Ignore /LTCG option

"The /LTCG option to LIB specifies that the inputs from cl.exe include object
files generated by using the /GL compiler option."

Based on Microsoft's description
above (https://docs.microsoft.com/en-us/cpp/build/reference/running-lib?view=msvc-170),
there doesn't seem to be anything llvm-lib needs to do to support the flag.

Reviewed By: rnk

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

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/llvm/lib/ToolDrivers/llvm-lib/Options.td b/llvm/lib/ToolDrivers/llvm-lib/Options.td
index 7d9668396e4b..747dcc82df5e 100644
--- a/llvm/lib/ToolDrivers/llvm-lib/Options.td
+++ b/llvm/lib/ToolDrivers/llvm-lib/Options.td
@@ -43,4 +43,5 @@ def help_q : Flag<["/??", "-??", "/?", "-?"], "">, Alias<help>;
 // The flags below do nothing. They are defined only for lib.exe compatibility.
 //==============================================================================
 
+def ltcg : F<"ltcg">;
 def nologo : F<"nologo">;


        


More information about the llvm-commits mailing list