[clang] [clang-sycl-linker] Add static archive (.a) support (PR #202829)
Yury Plyakhin via cfe-commits
cfe-commits at lists.llvm.org
Wed Jun 10 18:14:39 PDT 2026
================
@@ -24,12 +24,21 @@ def library_path_S : Separate<["--", "-"], "library-path">, Flags<[HelpHidden]>,
def library_path_EQ : Joined<["--", "-"], "library-path=">, Flags<[HelpHidden]>,
Alias<library_path>;
-def bc_library : Separate<["--", "-"], "bc-library">, MetaVarName<"<name>">,
- HelpText<"Add LLVM bitcode library <name> (with extension) to the link. A "
- "relative <name> is resolved against -L paths; an absolute path is "
- "taken as-is.">;
-def bc_library_EQ : Joined<["--", "-"], "bc-library=">, Flags<[HelpHidden]>,
- Alias<bc_library>;
+def library : JoinedOrSeparate<["-"], "l">, MetaVarName<"<libname>">,
+ HelpText<"Search for library <libname>">;
+def library_S : Separate<["--", "-"], "library">, Flags<[HelpHidden]>,
+ Alias<library>;
+def library_EQ : Joined<["--", "-"], "library=">, Flags<[HelpHidden]>,
+ Alias<library>;
+
+def whole_archive : Flag<["--", "-"], "whole-archive">,
+ HelpText<"Include all archive members in the link">;
+def no_whole_archive : Flag<["--", "-"], "no-whole-archive">,
+ HelpText<"Only include archive members that resolve undefined symbols (default)">;
----------------
YuriPlyakhin wrote:
option's purpose is to toggle off a preceding --whole-archive, so updated a description to make it clearer (I hope :) )
```suggestion
HelpText<"Disable --whole-archive for the following inputs (default state)">;
```
https://github.com/llvm/llvm-project/pull/202829
More information about the cfe-commits
mailing list