Skip to content

Commit

Permalink
Correctly infer the SDKROOT.
Browse files Browse the repository at this point in the history
This fixes the -lSystem issues we saw on recent osx platforms.
  • Loading branch information
vgvassilev authored and jenkins committed Dec 5, 2023
1 parent 8069aa7 commit 93153b9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/lit.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ llvm_config.with_system_environment(

config.substitutions.append(('%PATH%', config.environment['PATH']))


# We want to invoke the system clang. Or not?
config.substitutions = [x for x in config.substitutions if x[0] != ' clang ']

Expand Down Expand Up @@ -109,6 +108,8 @@ config.substitutions.append(('%shlibext', config.shlibext))
if platform.system() not in ['Windows'] or lit_config.getBashPath() != '':
config.available_features.add('shell')

lit.util.usePlatformSdkOnDarwin(config, lit_config)

# ROOT adds features that "heal" some of cling's tests; need to detect
# vanilla vs cling-as-part-of-ROOT. The latter has no `lib/UserInterface/textinput/`:
if os.path.isdir(os.path.join(config.cling_src_root, 'lib', 'UserInterface', 'textinput')):
Expand Down

0 comments on commit 93153b9

Please sign in to comment.