about summary refs log tree commit diff homepage
path: root/scripts/build/p-klee-osx.inc
diff options
context:
space:
mode:
authorMartin Nowack <m.nowack@imperial.ac.uk>2019-02-28 11:56:19 +0000
committerCristian Cadar <c.cadar@imperial.ac.uk>2019-03-10 20:10:32 +0000
commitcf930214e12b49e89be4674043d9f461d667baae (patch)
tree90de5ea1c643d0d7ad2c5cf55e862d309e605d48 /scripts/build/p-klee-osx.inc
parentb4d8fe0301b82e8abff0336bf6d1347dff11a853 (diff)
downloadklee-cf930214e12b49e89be4674043d9f461d667baae.tar.gz
Updated dependency build system for KLEE
Provide a single `scripts/build/build.sh` file to build KLEE and its
dependencies.
Diffstat (limited to 'scripts/build/p-klee-osx.inc')
-rw-r--r--scripts/build/p-klee-osx.inc14
1 files changed, 14 insertions, 0 deletions
diff --git a/scripts/build/p-klee-osx.inc b/scripts/build/p-klee-osx.inc
new file mode 100644
index 00000000..2aa5c3e8
--- /dev/null
+++ b/scripts/build/p-klee-osx.inc
@@ -0,0 +1,14 @@
+# Build dependencies
+install_build_dependencies_klee() {
+  set +e
+  brew upgrade python               # upgrade to Python 3
+  brew install python@2             # install Python 2 (OSX version outdated + pip missing)
+  brew link --overwrite python@2    # keg-only => link manually
+  rm -f /usr/local/bin/{python,pip} # re-link python/pip to Python 2
+  py2path=$(find /usr/local/Cellar/python@2/ -name "python" -type f | head -n 1)
+  pip2path=$(find /usr/local/Cellar/python@2/ -name "pip" -type f | head -n 1)
+  ln -s "${py2path}" /usr/local/bin/python
+  ln -s "${pip2path}" /usr/local/bin/pip
+  set -e
+  pip install lit
+}
\ No newline at end of file