diff options
author | 2023-10-10 14:33:42 +0000 | |
---|---|---|
committer | 2023-10-10 14:33:42 +0000 | |
commit | af1a266670d040d2f4083ff309d732d648afba2a (patch) | |
tree | 2fc46203448ddcc6f81546d379abfaeb323575e9 /capstone/suite/cstest/build_cstest.sh | |
parent | e02cda008591317b1625707ff8e115a4841aa889 (diff) |
Change-Id: Iaf8d18082d3991dec7c0ebbea540f092188eb4ec
Diffstat (limited to 'capstone/suite/cstest/build_cstest.sh')
-rw-r--r-- | capstone/suite/cstest/build_cstest.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/capstone/suite/cstest/build_cstest.sh b/capstone/suite/cstest/build_cstest.sh new file mode 100644 index 000000000..5b4ba4c2b --- /dev/null +++ b/capstone/suite/cstest/build_cstest.sh @@ -0,0 +1,9 @@ +#!/bin/sh + +cd cmocka && mkdir build && cd build +if [ "$(uname)" = Darwin ]; then +cmake -DCMAKE_INSTALL_PREFIX=/usr/local .. && make -j2 && sudo make install +else # Linux +cmake -DCMAKE_INSTALL_PREFIX=/usr .. && make -j2 && sudo make install +fi +cd ../.. && make |