]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Contrib: compile_clang_format - fix compilation on darwin
authorMatthias Maier <tamiko@43-1.org>
Thu, 17 May 2018 20:26:53 +0000 (15:26 -0500)
committerMatthias Maier <tamiko@43-1.org>
Sat, 19 May 2018 14:18:35 +0000 (09:18 -0500)
contrib/utilities/compile_clang_format

index c538d11e9181e22e2dfdafa5435a8f18900834ef..9140d013068414ce85a5c56ddb108e942f330749 100755 (executable)
@@ -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}"

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.