-
Notifications
You must be signed in to change notification settings - Fork 69
/
principia_make.sh
30 lines (29 loc) · 1.08 KB
/
principia_make.sh
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
26
27
28
29
30
# It seems that protoc really wants its dependencies to be in /usr/local/lib.
# In some setups, e.g., Azure pipelines, this does not work, so we need to help
# it find its dynamic libraries.
if [ "${AGENT_OS?}" == "Darwin" ]; then
install_name_tool \
-change \
/usr/local/lib/libprotobuf.17.dylib \
./deps/protobuf/src/.libs/libprotobuf.17.dylib \
deps/protobuf/src/.libs/libprotoc.17.dylib
install_name_tool \
-change \
/usr/local/lib/libprotobuf.17.dylib \
./deps/protobuf/src/.libs/libprotobuf.17.dylib \
deps/protobuf/src/.libs/protoc
install_name_tool \
-change \
/usr/local/lib/libprotoc.17.dylib \
./deps/protobuf/src/.libs/libprotoc.17.dylib \
deps/protobuf/src/.libs/protoc
elif [ "${AGENT_OS?}" == "Linux" ]; then
export LD_LIBRARY_PATH="./deps/protobuf/src/.libs:$LD_LIBRARY_PATH"
fi
make test
if [ "${AGENT_OS?}" == "Darwin" ]; then
# See https://github.com/actions/virtual-environments/issues/2619#issuecomment-788397841
# for why this is needed.
sudo /usr/sbin/purge
fi
make release