OSDN Git Service

[lld-macho] Ignore -lto_library
authorJez Ng <jezng@fb.com>
Fri, 22 Jan 2021 21:48:50 +0000 (16:48 -0500)
committerJez Ng <jezng@fb.com>
Fri, 22 Jan 2021 21:48:50 +0000 (16:48 -0500)
Just getting rid of some logspew as I test LLD under existing build
systems.

Reviewed By: #lld-macho, smeenai

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

lld/MachO/Options.td
lld/test/MachO/silent-ignore.test

index 89473ac..3410f50 100644 (file)
@@ -862,8 +862,7 @@ def object_path_lto : Separate<["-"], "object_path_lto">,
      Group<grp_rare>;
 def lto_library : Separate<["-"], "lto_library">,
      MetaVarName<"<path>">,
-     HelpText<"Override the default ../lib/libLTO.dylib as <path>">,
-     Flags<[HelpHidden]>,
+     HelpText<"Deprecated & ignored. LLD supports LTO directly, without using an external dylib.">,
      Group<grp_rare>;
 def cache_path_lto : Separate<["-"], "cache_path_lto">,
      MetaVarName<"<path>">,
index 2d11748..e6b4703 100644 (file)
@@ -4,6 +4,7 @@ RUN:   -no_deduplicate \
 RUN:   -lto_library /lib/foo \
 RUN:   -macosx_version_min 0 \
 RUN:   -dependency_info /path/to/dependency_info.dat \
+RUN:   -lto_library ../lib/libLTO.dylib \
 RUN:   -mllvm -time-passes \
 RUN:   -objc_abi_version 2 \
 RUN:   -ios_simulator_version_min 9.0.0 \