diff options
Diffstat (limited to 'scripts/build/p-clang-osx.inc')
-rw-r--r-- | scripts/build/p-clang-osx.inc | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/scripts/build/p-clang-osx.inc b/scripts/build/p-clang-osx.inc new file mode 100644 index 00000000..fde236ca --- /dev/null +++ b/scripts/build/p-clang-osx.inc @@ -0,0 +1,13 @@ +# Package script for LLVM builds OSX +install_binary_artifact_clang () { + # Use the brew provided package + LLVM_VERSION_MAJOR="${LLVM_VERSION/.*/}" + brew install "llvm\@${LLVM_VERSION_MAJOR}" +} + +# Check if the binary artifact is installed +is_installed_clang() { + # Check if llvm-config with the right version exists + LLVM_VERSION_MAJOR="${LLVM_VERSION/.*/}" + [[ -f "/usr/local/opt/llvm@${LLVM_VERSION_MAJOR}/bin/llvm-config" ]] +} |