[all-commits] [llvm/llvm-project] c148e1: [compiler-rt] [test] Fix NameError when loading li...

Sergej Jaskiewicz via All-commits all-commits at lists.llvm.org
Wed Jun 10 03:47:50 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: c148e15c255ea04d898c8f7de576dbf254a22529
      https://github.com/llvm/llvm-project/commit/c148e15c255ea04d898c8f7de576dbf254a22529
  Author: Sergej Jaskiewicz <jaskiewiczs at icloud.com>
  Date:   2020-06-10 (Wed, 10 Jun 2020)

  Changed paths:
    M compiler-rt/test/crt/lit.cfg.py

  Log Message:
  -----------
  [compiler-rt] [test] Fix NameError when loading lit.cfg.py for crt

Summary:
The `execute_external` global variable is defined in [`lit.common.cfg.py`](https://github.com/llvm/llvm-project/blob/fcfb3170a776f89dde4de8ee105c99e10660f455/compiler-rt/test/lit.common.cfg.py#L18-L27) and used here (on lines 23 and 39). However, this variable is not visible in configs that are loaded independently.

Explicitly assign it to the correct value to avoid `NameError`.

Reviewers: compnerd, phosek

Reviewed By: compnerd, phosek

Subscribers: dberris, #sanitizers

Tags: #sanitizers

Differential Revision: https://reviews.llvm.org/D79892




More information about the All-commits mailing list