From: Matthias Maier Date: Thu, 17 May 2018 20:26:53 +0000 (-0500) Subject: Contrib: compile_clang_format - fix compilation on darwin X-Git-Tag: v9.1.0-rc1~1126^2~3 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6c31f661dc83a14d047f9cfb26c75ec3f2940872;p=dealii.git Contrib: compile_clang_format - fix compilation on darwin --- diff --git a/contrib/utilities/compile_clang_format b/contrib/utilities/compile_clang_format index c538d11e91..9140d01306 100755 --- a/contrib/utilities/compile_clang_format +++ b/contrib/utilities/compile_clang_format @@ -71,7 +71,16 @@ git reset --hard "${CLANG_COMMIT}" cd ../../ mkdir build cd build -cmake -DCMAKE_BUILD_TYPE=MinSizeRel -DLLVM_BUILD_STATIC=true .. + +case "${OSTYPE}" in + darwin*) + cmake -DCMAKE_BUILD_TYPE=MinSizeRel .. + ;; + *) + cmake -DCMAKE_BUILD_TYPE=MinSizeRel -DLLVM_BUILD_STATIC=true .. + ;; +esac + make -j4 clang-format cp bin/clang-format "${CLANG_PATH}"/bin cp ../{CODE_OWNERS,CREDITS,LICENSE}.TXT "${CLANG_PATH}"