[Lldb-commits] [lldb] r366478 - [lldb][swig] Fix autodocs flag parsing

Jordan Rupprecht via lldb-commits lldb-commits at lists.llvm.org
Thu Jul 18 11:18:51 PDT 2019


Author: rupprecht
Date: Thu Jul 18 11:18:51 2019
New Revision: 366478

URL: http://llvm.org/viewvc/llvm-project?rev=366478&view=rev
Log:
[lldb][swig] Fix autodocs flag parsing

r366471 added "-features autodoc" without a trailing comment, leading to `Unrecognized option -features autodoc-threads` due to implicit string concatenation. Add a comma to fix that.

Also separate into "-features" and "autodoc", otherwise it gets parsed as a single "-features autodoc" flag which is also not recognized (it must be two separate CLI args).

Modified:
    lldb/trunk/scripts/Python/prepare_binding_Python.py

Modified: lldb/trunk/scripts/Python/prepare_binding_Python.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/scripts/Python/prepare_binding_Python.py?rev=366478&r1=366477&r2=366478&view=diff
==============================================================================
--- lldb/trunk/scripts/Python/prepare_binding_Python.py (original)
+++ lldb/trunk/scripts/Python/prepare_binding_Python.py Thu Jul 18 11:18:51 2019
@@ -204,7 +204,7 @@ def do_swig_rebuild(options, dependency_
             "-c++",
             "-shadow",
             "-python",
-            "-features autodoc"
+            "-features", "autodoc",
             "-threads",
             "-I" + os.path.normpath(os.path.join(options.src_root, "include")),
             "-I" + os.path.curdir,




More information about the lldb-commits mailing list