diff options
Diffstat (limited to 'coin/provisioning')
-rwxr-xr-x | coin/provisioning/common/unix/libclang.sh | 7 | ||||
-rw-r--r-- | coin/provisioning/common/windows/libclang.ps1 | 6 |
2 files changed, 13 insertions, 0 deletions
diff --git a/coin/provisioning/common/unix/libclang.sh b/coin/provisioning/common/unix/libclang.sh index f024130f..f6ff4507 100755 --- a/coin/provisioning/common/unix/libclang.sh +++ b/coin/provisioning/common/unix/libclang.sh @@ -42,6 +42,7 @@ set -e # shellcheck source=./check_and_set_proxy.sh source "${BASH_SOURCE%/*}/check_and_set_proxy.sh" +source "${BASH_SOURCE%/*}/SetEnvVar.sh" BASEDIR=$(dirname "$0") # shellcheck source=../shared/sw_versions.txt @@ -70,3 +71,9 @@ sudo mv /tmp/libclang "$destination" echo "export LLVM_INSTALL_DIR=$destination" >> ~/.bash_profile echo "libClang = $version" >> ~/versions.txt + +if [ "$version" == "6.0" ]; then + # This is a hacked static build of libclang which requires special + # handling on the qdoc side. + SetEnvVar "QDOC_USE_STATIC_LIBCLANG" "1" +fi diff --git a/coin/provisioning/common/windows/libclang.ps1 b/coin/provisioning/common/windows/libclang.ps1 index 5ba0a0aa..db277134 100644 --- a/coin/provisioning/common/windows/libclang.ps1 +++ b/coin/provisioning/common/windows/libclang.ps1 @@ -86,3 +86,9 @@ if ( $setDefault ) { } Set-EnvironmentVariable ("LLVM_INSTALL_DIR_" + $toolchainSuffix) ($baseDestination + "-_ARCH_") Write-Output "libClang = $libclang_version" >> ~/versions.txt + +if ( $libclang_version -eq "60" ) { + # This is a hacked static build of libclang which requires special + # handling on the qdoc side. + Set-EnvironmentVariable "QDOC_USE_STATIC_LIBCLANG" "1" +} |