Commit f109e9af authored by Conner Fromknecht's avatar Conner Fromknecht Committed by norswap

feat: invoke uname using shell in Makefile

parent bd96bc49
...@@ -16,7 +16,7 @@ unicorn/build: unicorn/CMakeLists.txt ...@@ -16,7 +16,7 @@ unicorn/build: unicorn/CMakeLists.txt
mkdir -p unicorn/build mkdir -p unicorn/build
cd unicorn/build && cmake .. -DUNICORN_ARCH=mips -DCMAKE_BUILD_TYPE=Release cd unicorn/build && cmake .. -DUNICORN_ARCH=mips -DCMAKE_BUILD_TYPE=Release
# Not sure why, but the second invocation is needed for fresh installs on MacOS. # Not sure why, but the second invocation is needed for fresh installs on MacOS.
if [ "$(uname)" == "Darwin" ]; then \ if [ "$(shell uname)" == "Darwin" ]; then \
cd unicorn/build && cmake .. -DUNICORN_ARCH=mips -DCMAKE_BUILD_TYPE=Release; \ cd unicorn/build && cmake .. -DUNICORN_ARCH=mips -DCMAKE_BUILD_TYPE=Release; \
fi fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment