提交 885a34ac 编写于 作者: F Fergus Henderson 提交者: TensorFlower Gardener

(lite) Change layout of hide_symbols_with_allowlist.sh to conform to the Google Shell Style guide

<https://google.github.io/styleguide/shellguide.html#s5.4-loops>

PiperOrigin-RevId: 327935590
Change-Id: I9046a7fbf51fdbcd510633513d982e27e471ceff
上级 c352bafb
......@@ -33,8 +33,7 @@ LD_DEBUGGABLE_FLAGS="-x"
# LD_DEBUGGABLE_FLAGS="-d"
# Exits if C++ symbols are found in the allowlist.
if grep -q "^__Z" "${ALLOWLIST_FILE_PATH}"
then
if grep -q "^__Z" "${ALLOWLIST_FILE_PATH}"; then
echo "ERROR: Failed in symbol hiding. This rule does not permit hiding of" \
"C++ symbols due to possible serious problems mixing symbol hiding," \
"shared libraries and the C++ runtime." \
......@@ -59,8 +58,7 @@ IFS=' ' read -r -a archs <<< "${archs_str}"
merge_cmd=(xcrun lipo)
# Merges object files and hide symbols for each architecture.
for arch in "${archs[@]}"
do
for arch in "${archs[@]}"; do
archdir=$(mktemp -t "${arch}" -d)
arch_file="${archdir}/${arch}"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册