[libc++] Pickle substitutions to pass them to dsl.sh.py
authorLouis Dionne <ldionne.2@gmail.com>
Tue, 5 Oct 2021 20:34:33 +0000 (16:34 -0400)
committerLouis Dionne <ldionne.2@gmail.com>
Tue, 5 Oct 2021 23:51:23 +0000 (19:51 -0400)
commitd51f57c23ca95f4b9b383f0942fee2957d36fd4f
tree51447b4d691cfe728539439907056f675f7c2ead
parent54a8a0d09a572a0581c0755541847e016274e15c
[libc++] Pickle substitutions to pass them to dsl.sh.py

This is less brittle than hand-picking the substitutions that we
pass to the test, since a config could theorically use non-base
substitutions as well (such as defining %{flags} in terms of another
substitution like %{include}).

Also, print the decoded substitutions, which makes it much easier
to debug the test when it fails.

Differential Revision: https://reviews.llvm.org/D111179
libcxx/test/libcxx/selftest/dsl/dsl.sh.py
libcxx/test/libcxx/selftest/dsl/lit.local.cfg