[PATCH] D61697: [lit] Disable test on darwin when building shared libs.

Petr Hosek via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jun 13 16:56:37 PDT 2019


phosek added a comment.

This broke all our macOS builders:

  llvm-lit: /b/s/w/ir/k/llvm-project/llvm/utils/lit/lit/TestingConfig.py:102: fatal: unable to parse config file '/b/s/w/ir/k/recipe_cleanup/clangh7IvHV/llvm_build_dir/tools/lld/test/lit.site.cfg.py', traceback: Traceback (most recent call last):
    File "/b/s/w/ir/k/llvm-project/llvm/utils/lit/lit/TestingConfig.py", line 89, in load_from_path
      exec(compile(data, path, 'exec'), cfg_globals, None)
    File "/b/s/w/ir/k/recipe_cleanup/clangh7IvHV/llvm_build_dir/tools/lld/test/lit.site.cfg.py", line 31, in <module>
      lit.llvm.initialize(lit_config, config)
    File "/b/s/w/ir/k/llvm-project/llvm/utils/lit/lit/llvm/__init__.py", line 9, in initialize
      llvm_config = config.LLVMConfig(lit_config, test_config)
    File "/b/s/w/ir/k/llvm-project/llvm/utils/lit/lit/llvm/config.py", line 51, in __init__
      if config.enable_shared:
  AttributeError: TestingConfig instance has no attribute 'enable_shared'

The problem is that `enable_shared` isn't defined in lld's `lit.site.cfg.py`. Is it possible to either fix this or revert this change?


Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D61697/new/

https://reviews.llvm.org/D61697





More information about the cfe-commits mailing list