doctor: avoid using MACOS_VERSION
This commit is contained in:
parent
a5f68bb874
commit
b2516f9989
@ -831,11 +831,12 @@ def check_for_linked_keg_only_brews
|
|||||||
end
|
end
|
||||||
|
|
||||||
def check_for_MACOSX_DEPLOYMENT_TARGET
|
def check_for_MACOSX_DEPLOYMENT_TARGET
|
||||||
target_var = ENV['MACOSX_DEPLOYMENT_TARGET']
|
target = ENV.fetch('MACOSX_DEPLOYMENT_TARGET') { return }
|
||||||
if target_var and target_var != MACOS_VERSION.to_s then <<-EOS.undent
|
|
||||||
MACOSX_DEPLOYMENT_TARGET was set to #{target_var}
|
unless target == MacOS.version.to_s then <<-EOS.undent
|
||||||
|
MACOSX_DEPLOYMENT_TARGET was set to #{target.inspect}
|
||||||
This is used by Fink, but having it set to a value different from the
|
This is used by Fink, but having it set to a value different from the
|
||||||
current system version (#{MACOS_VERSION}) can cause problems, compiling
|
current system version (#{MacOS.version}) can cause problems, compiling
|
||||||
Git for instance, and should probably be removed.
|
Git for instance, and should probably be removed.
|
||||||
EOS
|
EOS
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user