[libc++] Provide a method for adding compiler flags in lit.local.cfg files
authorLouis Dionne <ldionne@apple.com>
Mon, 30 Mar 2020 17:22:06 +0000 (13:22 -0400)
committerLouis Dionne <ldionne@apple.com>
Tue, 31 Mar 2020 13:29:18 +0000 (09:29 -0400)
commitfb47ffc618eaf0e716eafa7e719fc67bf41cef3b
treeb3727e16dc562803aa0a89c5d3368bc7ad4c0b7b
parentd3a729ab247af45d4929df2a6090db7571b7116f
[libc++] Provide a method for adding compiler flags in lit.local.cfg files

That way, local lit configuration files don't have to worry about
deep-copying the compiler instance of the test format, which is
arguably an implementation detail.

We pass the config to this method even though it is not used by the
current test format because this allows replacing the current test
format by other test formats that would require the config to add
new compile flags.
libcxx/test/std/experimental/filesystem/lit.local.cfg
libcxx/test/std/experimental/language.support/support.coroutines/lit.local.cfg
libcxx/test/std/input.output/filesystems/lit.local.cfg
libcxx/utils/libcxx/test/format.py