[lldb][swig] Fix autodocs flag parsing
authorJordan Rupprecht <rupprecht@google.com>
Thu, 18 Jul 2019 18:18:51 +0000 (18:18 +0000)
committerJordan Rupprecht <rupprecht@google.com>
Thu, 18 Jul 2019 18:18:51 +0000 (18:18 +0000)
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).

llvm-svn: 366478

lldb/scripts/Python/prepare_binding_Python.py

index f642ba3..7d13d6e 100644 (file)
@@ -204,7 +204,7 @@ def do_swig_rebuild(options, dependency_file, config_build_dir, settings):
             "-c++",
             "-shadow",
             "-python",
-            "-features autodoc"
+            "-features", "autodoc",
             "-threads",
             "-I" + os.path.normpath(os.path.join(options.src_root, "include")),
             "-I" + os.path.curdir,