[libc++] Fix broken Lit features based on __config_site macros
authorLouis Dionne <ldionne@apple.com>
Fri, 15 May 2020 16:24:05 +0000 (12:24 -0400)
committerLouis Dionne <ldionne@apple.com>
Fri, 15 May 2020 16:25:19 +0000 (12:25 -0400)
commit1a68b5f048c63f94b71e8aacb5507445c446c9d2
treeeef68cdfc16faf3082b4c789221f444156bad402
parentbb7191aa81b858e9c979556eca55a7bc0db2d87b
[libc++] Fix broken Lit features based on __config_site macros

Because of Python's funny scoping rules with lambdas, we were always
using the value of `macro` as set in the last iteration of the loop.
This problem was introduced by e7bdfba4f00d.
libcxx/utils/libcxx/test/features.py