blob: c2bad224bdae3b2d3e20193dac11ccabb2e880ab (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
diff --git a/build_dependencies.sh b/build_dependencies.sh
index 11b16ba..1229009 100755
--- a/build_dependencies.sh
+++ b/build_dependencies.sh
@@ -73,12 +73,20 @@ msg " " "$@"
cd "${repo_dir}"
(
set -x
+
+ if type clang >/dev/null 2>&1; then
+ export CC="${CC:-$(which clang)}"
+ export CXX="${CXX:-$(which clang++)}"
+ fi
+
# TODO: Better way to remove all unspecified packages that we're about to
# install for specified triplet? Need this because different LLVM versions
# conflict when installed at the same time
rm -rf "${vcpkg_dir:?}/installed" || true
"${vcpkg_dir}/vcpkg" install "${extra_vcpkg_args[@]}" '@overlays.txt' '@dependencies.txt' "$@"
"${vcpkg_dir}/vcpkg" upgrade "${extra_vcpkg_args[@]}" '@overlays.txt' --no-dry-run
+
+ find "${vcpkg_dir}"/installed/*/tools/protobuf/ -type f -exec chmod 755 {} +
)
)
|