ENV/shared: fix macOS code not applying under HOMEBREW_SORBET_RUNTIME
This commit is contained in:
		
							parent
							
								
									b58c93a234
								
							
						
					
					
						commit
						63a8474ad7
					
				@ -2,6 +2,16 @@
 | 
			
		||||
# frozen_string_literal: true
 | 
			
		||||
 | 
			
		||||
module SharedEnvExtension
 | 
			
		||||
  sig {
 | 
			
		||||
    params(
 | 
			
		||||
      formula:         T.nilable(Formula),
 | 
			
		||||
      cc:              T.nilable(String),
 | 
			
		||||
      build_bottle:    T.nilable(T::Boolean),
 | 
			
		||||
      bottle_arch:     T.nilable(String),
 | 
			
		||||
      testing_formula: T::Boolean,
 | 
			
		||||
      debug_symbols:   T.nilable(T::Boolean),
 | 
			
		||||
    ).void
 | 
			
		||||
  }
 | 
			
		||||
  def setup_build_environment(formula: nil, cc: nil, build_bottle: false, bottle_arch: nil, testing_formula: false,
 | 
			
		||||
                              debug_symbols: false)
 | 
			
		||||
    generic_shared_setup_build_environment(formula: formula, cc: cc, build_bottle: build_bottle,
 | 
			
		||||
@ -11,6 +21,7 @@ module SharedEnvExtension
 | 
			
		||||
    # Normalise the system Perl version used, where multiple may be available
 | 
			
		||||
    self["VERSIONER_PERL_VERSION"] = MacOS.preferred_perl_version
 | 
			
		||||
  end
 | 
			
		||||
  private :setup_build_environment
 | 
			
		||||
 | 
			
		||||
  sig { returns(T::Boolean) }
 | 
			
		||||
  def no_weak_imports_support?
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user