summaryrefslogtreecommitdiffstats
path: root/lldb/scripts/swig_bot.py
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2015-11-24 21:35:17 +0000
committerZachary Turner <zturner@google.com>2015-11-24 21:35:17 +0000
commit2db36097b4b0df68aec40feefaff7a534edf0f0c (patch)
treef2dcdb50d69dd3308b05222cd3edb26bfe74fd36 /lldb/scripts/swig_bot.py
parent1b665ca707f49cd613c5ac9cec620aa284c19727 (diff)
downloadbcm5719-llvm-2db36097b4b0df68aec40feefaff7a534edf0f0c.tar.gz
bcm5719-llvm-2db36097b4b0df68aec40feefaff7a534edf0f0c.zip
First implementation of swig_bot.py
This version supports local generation only. It's intentionally stupid, and does not support any kind of dependency checking. If you run the script, it's going to call SWIG. While this is a slow process, we are going to combine the use of the swig bot with checked in static bindings, meaning that it won't be terribly important to only regenerate the bindings when the input files have actually changed. A side benefit of this is that the implementation is drastically simpler. This is all experimental at the moment, but it duplicates a lot of the logic currently found in prepare_bindings.py. There was not a good way to reuse some of the logic without invasive changes on that script, and since this script is still experimental, it makes sense to just copy them over, and if / when this becomes more mature, we can get rid of the other ones. llvm-svn: 254022
Diffstat (limited to 'lldb/scripts/swig_bot.py')
-rw-r--r--lldb/scripts/swig_bot.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/lldb/scripts/swig_bot.py b/lldb/scripts/swig_bot.py
new file mode 100644
index 00000000000..4587126bdfd
--- /dev/null
+++ b/lldb/scripts/swig_bot.py
@@ -0,0 +1,11 @@
+#!/usr/bin/env python
+
+# Python modules
+import sys
+
+# LLDB modules
+import use_lldb_suite
+
+if __name__ == "__main__":
+ from swig_bot_lib import client
+ client.run(sys.argv[1:])
OpenPOWER on IntegriCloud