ROOT: unset MACOSX_DEPLOYMENT_TARGET for macOS (#28163)

This commit is contained in:
Seth R. Johnson 2022-01-03 05:21:15 -05:00 committed by GitHub
parent e40eceba4c
commit 8daaee3ed6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -602,6 +602,11 @@ def add_include_path(dep_name):
if '+opengl' in spec:
add_include_path('glew')
add_include_path('mesa-glu')
if 'platform=darwin' in spec:
# Newer deployment targets cause fatal errors in rootcling, so
# override with an empty value even though it may lead to link
# warnings when building against ROOT
env.unset('MACOSX_DEPLOYMENT_TARGET')
def setup_run_environment(self, env):
env.set('ROOTSYS', self.prefix)