mirror of
https://github.com/digital-asset/daml.git
synced 2024-11-10 10:46:11 +03:00
9dc3d2ace4
* Upgrade to Bazel 4.0 changelog_begin changelog_end * Go back to default assignment changelog_begin changelog_end
33 lines
872 B
Diff
33 lines
872 B
Diff
diff --git a/tools/cpp/osx_cc_wrapper.sh.tpl b/tools/cpp/osx_cc_wrapper.sh.tpl
|
|
index 28bd47ba1a..126701e60b 100644
|
|
--- a/tools/cpp/osx_cc_wrapper.sh.tpl
|
|
+++ b/tools/cpp/osx_cc_wrapper.sh.tpl
|
|
@@ -51,14 +51,21 @@ function parse_option() {
|
|
}
|
|
|
|
# let parse the option list
|
|
+IGNORE_AT=false
|
|
for i in "$@"; do
|
|
- if [[ "$i" = @* ]]; then
|
|
- while IFS= read -r opt
|
|
- do
|
|
- parse_option "$opt"
|
|
- done < "${i:1}" || exit 1
|
|
- else
|
|
+ if [[ "$i" = "-install_name" || "$i" = "-Xlinker" ]]; then
|
|
parse_option "$i"
|
|
+ IGNORE_AT=true
|
|
+ else
|
|
+ if [[ ("$i" = @*) && ("$IGNORE_AT" = false) ]]; then
|
|
+ while IFS= read -r opt
|
|
+ do
|
|
+ parse_option "$opt"
|
|
+ done < "${i:1}" || exit 1
|
|
+ else
|
|
+ parse_option "$i"
|
|
+ fi
|
|
+ IGNORE_AT=false
|
|
fi
|
|
done
|
|
|