From 6c31f661dc83a14d047f9cfb26c75ec3f2940872 Mon Sep 17 00:00:00 2001 From: Matthias Maier Date: Thu, 17 May 2018 15:26:53 -0500 Subject: [PATCH] Contrib: compile_clang_format - fix compilation on darwin --- contrib/utilities/compile_clang_format | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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}" -- 2.39.5