diff options
| author | Shaun Jackman | 2018-01-03 10:51:06 -0800 |
|---|---|---|
| committer | Shaun Jackman | 2018-01-03 10:52:12 -0800 |
| commit | 5d9149a4b9fec1a70df69dff05d9e6b117629467 (patch) | |
| tree | c7c35175a500462a2394701ab567df37e27f7132 /Library/Homebrew/os | |
| parent | 4e08da95c34c27ba6d5ca5f80718fe2788337cdf (diff) | |
| download | brew-5d9149a4b9fec1a70df69dff05d9e6b117629467.tar.bz2 | |
LD64Dependency is needed on macOS only
Move ld64_dependency.rb to os/mac/.
Diffstat (limited to 'Library/Homebrew/os')
| -rw-r--r-- | Library/Homebrew/os/mac/ld64_dependency.rb | 11 |
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 |
