Module: OS::Mac::SharedEnvExtension Private

Extended by:
T::Helpers
Included in:
SharedEnvExtension
Defined in:
extend/os/mac/extend/ENV/shared.rb

This module is part of a private API. This module may only be used in the Homebrew/brew repository. Third parties should avoid using this module if possible, as it may be removed or changed without warning.

Instance Method Summary collapse

Instance Method Details

#no_fixup_chains_support?Boolean

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Returns:

  • (Boolean)


40
41
42
43
44
45
# File 'extend/os/mac/extend/ENV/shared.rb', line 40

def no_fixup_chains_support?
  # This is supported starting Xcode 13, which ships ld64-711.
  # https://developer.apple.com/documentation/xcode-release-notes/xcode-13-release-notes
  # https://en.wikipedia.org/wiki/Xcode#Xcode_11.0_-_14.x_(since_SwiftUI_framework)_2
  OS::Mac::DevelopmentTools.ld64_version >= 711
end

#no_weak_imports_support?Boolean

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Returns:

  • (Boolean)


30
31
32
33
34
35
36
37
# File 'extend/os/mac/extend/ENV/shared.rb', line 30

def no_weak_imports_support?
  return false if compiler != :clang

  return false if !MacOS::Xcode.version.null? && MacOS::Xcode.version < "8.0"
  return false if !MacOS::CLT.version.null? && MacOS::CLT.version < "8.0"

  true
end

#setup_build_environment(formula: nil, cc: nil, build_bottle: false, bottle_arch: nil, testing_formula: false, debug_symbols: false) ⇒ void

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

This method returns an undefined value.

Parameters:

  • formula (::Formula, nil) (defaults to: nil)
  • cc (String, nil) (defaults to: nil)
  • build_bottle (Boolean, nil) (defaults to: false)
  • bottle_arch (String, nil) (defaults to: nil)
  • testing_formula (Boolean) (defaults to: false)
  • debug_symbols (Boolean, nil) (defaults to: false)


21
22
23
24
25
26
27
# File 'extend/os/mac/extend/ENV/shared.rb', line 21

def setup_build_environment(formula: nil, cc: nil, build_bottle: false, bottle_arch: nil,
                            testing_formula: false, debug_symbols: false)
  super

  # Normalise the system Perl version used, where multiple may be available
  self["VERSIONER_PERL_VERSION"] = MacOS.preferred_perl_version
end