diff options
author | Stefano Borzì <stefanoborzi32@gmail.com> | 2022-03-16 18:57:03 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-16 18:57:03 +0100 |
commit | 8301434a0161d153daab0490407a45fc51f7a10b (patch) | |
tree | d4021dfa8b40a727965e531f4708acdd42fc23ff /apps/compiler/includes/functions.sh | |
parent | e8d3292533c7e5d18af15d9bffabd581bacbadf9 (diff) |
fix(Bash/Dashboard): fix macOS configurations (#11002)
Diffstat (limited to 'apps/compiler/includes/functions.sh')
-rw-r--r-- | apps/compiler/includes/functions.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/compiler/includes/functions.sh b/apps/compiler/includes/functions.sh index df41acf709..b29c58de3d 100644 --- a/apps/compiler/includes/functions.sh +++ b/apps/compiler/includes/functions.sh @@ -19,7 +19,12 @@ function comp_ccacheEnable() { export CCACHE_COMPRESSLEVEL=${CCACHE_COMPRESSLEVEL:-9} #export CCACHE_NODIRECT=true - export CCUSTOMOPTIONS="$CCUSTOMOPTIONS -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache" + unamestr=$(uname) + if [[ "$unamestr" == 'Darwin' ]]; then + export CCUSTOMOPTIONS="$CCUSTOMOPTIONS -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DMYSQL_ADD_INCLUDE_PATH=/usr/local/include -DMYSQL_LIBRARY=/usr/local/lib/libmysqlclient.dylib -DREADLINE_INCLUDE_DIR=/usr/local/opt/readline/include -DREADLINE_LIBRARY=/usr/local/opt/readline/lib/libreadline.dylib -DOPENSSL_INCLUDE_DIR=/usr/local/opt/openssl@1.1/include -DOPENSSL_SSL_LIBRARIES=/usr/local/opt/openssl@1.1/lib/libssl.dylib -DOPENSSL_CRYPTO_LIBRARIES=/usr/local/opt/openssl@1.1/lib/libcrypto.dylib" + else + export CCUSTOMOPTIONS="$CCUSTOMOPTIONS -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache" + fi } function comp_ccacheClean() { |