[PATCH] D134309: [llvm-libtool-darwin] Parse and ignore -syslibroot
Keith Smiley via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 3 09:54:27 PDT 2022
This revision was not accepted when it landed; it landed in state "Needs Review".
This revision was automatically updated to reflect the committed changes.
Closed by commit rGe8c10fc1811f: [llvm-libtool-darwin] Parse and ignore -syslibroot (authored by keith).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D134309/new/
https://reviews.llvm.org/D134309
Files:
llvm/test/tools/llvm-libtool-darwin/ignored-options.test
llvm/tools/llvm-libtool-darwin/llvm-libtool-darwin.cpp
Index: llvm/tools/llvm-libtool-darwin/llvm-libtool-darwin.cpp
===================================================================
--- llvm/tools/llvm-libtool-darwin/llvm-libtool-darwin.cpp
+++ llvm/tools/llvm-libtool-darwin/llvm-libtool-darwin.cpp
@@ -101,6 +101,8 @@
cl::cat(LibtoolCategory),
cl::init(false));
+static cl::opt<std::string> IgnoredSyslibRoot("syslibroot", cl::Hidden);
+
static const std::array<std::string, 3> StandardSearchDirs{
"/lib",
"/usr/lib",
Index: llvm/test/tools/llvm-libtool-darwin/ignored-options.test
===================================================================
--- /dev/null
+++ llvm/test/tools/llvm-libtool-darwin/ignored-options.test
@@ -0,0 +1,8 @@
+## This tests some flags are correctly parsed even when they're not handled
+
+# RUN: llvm-libtool-darwin -V -syslibroot foo | FileCheck %s
+# RUN: llvm-libtool-darwin -h | FileCheck --check-prefix=HELP %s
+
+# CHECK: Default target:
+
+# HELP-NOT: syslibroot
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D134309.464720.patch
Type: text/x-patch
Size: 1043 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221003/c77f22bb/attachment.bin>
More information about the llvm-commits
mailing list