aboutsummaryrefslogtreecommitdiffstats
path: root/tool
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-09-21 07:19:13 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-09-21 07:19:13 +0000
commit68492ecf51c632044d6dd0da14ebae86067cbea2 (patch)
treedece488bb20716e6fe132acb107d223c321f3e5c /tool
parentb5395610503a4cedf6b8d347eaeae32a1ffd3839 (diff)
downloadruby-68492ecf51c632044d6dd0da14ebae86067cbea2.tar.gz
darwin-cc: hide ld warnings
* tool/darwin-cc: ld in Apple's recent Xcode warns text-based stub files, which are probably caused by Apple's broken package. hide such (and architecture deprecation) warnings during configuration to pass TRY_LDFLAGS. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64802 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool')
-rwxr-xr-xtool/darwin-cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/tool/darwin-cc b/tool/darwin-cc
new file mode 100755
index 0000000000..6eee96e435
--- /dev/null
+++ b/tool/darwin-cc
@@ -0,0 +1,6 @@
+#!/bin/bash
+exec 2> >(exec grep -v \
+ -e '^ld: warning: The [a-z0-9_][a-z0-9_]* architecture is deprecated for macOS' \
+ -e '^ld: warning: text-based stub file /System/Library/Frameworks/' \
+ >&2)
+exec "$@"