aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/os
diff options
context:
space:
mode:
authorMike McQuaid2018-01-03 21:12:59 +0000
committerGitHub2018-01-03 21:12:59 +0000
commitb9cb6ccca82a7b8d26cdd0f665c730a6024b78aa (patch)
treec7c35175a500462a2394701ab567df37e27f7132 /Library/Homebrew/os
parent4e08da95c34c27ba6d5ca5f80718fe2788337cdf (diff)
parent5d9149a4b9fec1a70df69dff05d9e6b117629467 (diff)
downloadbrew-b9cb6ccca82a7b8d26cdd0f665c730a6024b78aa.tar.bz2
Merge pull request #3626 from sjackman/ld64
LD64Dependency is needed on macOS only
Diffstat (limited to 'Library/Homebrew/os')
-rw-r--r--Library/Homebrew/os/mac/ld64_dependency.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/Library/Homebrew/os/mac/ld64_dependency.rb b/Library/Homebrew/os/mac/ld64_dependency.rb
new file mode 100644
index 000000000..a506a0ab2
--- /dev/null
+++ b/Library/Homebrew/os/mac/ld64_dependency.rb
@@ -0,0 +1,11 @@
+require "dependency"
+
+# This special dependency ensures that the Tigerbrew ld64
+# formula is used as gcc's ld in place of the old version
+# that comes with the OS.
+class LD64Dependency < Dependency
+ def initialize(name = "ld64", tags = [:build], env_proc = nil)
+ super
+ @env_proc = proc { ENV.ld64 }
+ end
+end