Skip to content

Commit

Permalink
[compiler-rt] [test] Allow expanding lit substitutions recursively
Browse files Browse the repository at this point in the history
Summary:
This allows using lit substitutions in the `COMPILER_RT_EMULATOR` variable.

(For reference, the ability to expand substitutions recursively has been introduced in https://reviews.llvm.org/D76178.)

Reviewers: phosek, compnerd

Reviewed By: compnerd

Subscribers: dberris, #sanitizers

Tags: #sanitizers

Differential Revision: https://reviews.llvm.org/D83489
  • Loading branch information
broadwaylamb committed Jul 9, 2020
1 parent 6f69318 commit 8372d50
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions compiler-rt/test/lit.common.cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
# bash on Windows is usually very slow.
execute_external = (not sys.platform in ['win32'])

# Allow expanding substitutions that are based on other substitutions
config.recursiveExpansionLimit = 10

# Setup test format.
config.test_format = lit.formats.ShTest(execute_external)
if execute_external:
Expand Down

0 comments on commit 8372d50

Please sign in to comment.