[openmp] Use config.test_extra_flags in archer and multiplex tests
authorHan Zhu <zhuhan@fb.com>
Thu, 25 Jun 2020 18:58:35 +0000 (11:58 -0700)
committerWenlei He <aktoon@gmail.com>
Thu, 25 Jun 2020 18:58:52 +0000 (11:58 -0700)
commit1eaebe192f08934527e741ba65d29c933d685680
tree8b57713eb65a2c6158bc036bfd8105f7d206d681
parent4198874630be5c6126d78944f8a2d89dea90c7c4
[openmp] Use config.test_extra_flags in archer and multiplex tests

Summary:
`config.test_extra_flags` is passed in from `lit.site.cfg.in` files, but they're not used in the LIT configs. This variable can be useful for distros which don't have the standard c/c++ headers in the default search paths. Since the tests run clang on c/c++ source code, we rely on `test_extra_flags` to pass in the necessary header files.

This is a similar setup that's also done in litomptarget https://github.com/llvm/llvm-project/blob/master/openmp/libomptarget/test/lit.cfg#L42 and openmp/runtime.

Reviewers: jdoerfert, jdenny, protze.joachim

Reviewed By: jdoerfert

Subscribers: yaxunl, guansong, sstefan1, openmp-commits

Tags: #openmp

Differential Revision: https://reviews.llvm.org/D82516
openmp/tools/archer/tests/lit.cfg
openmp/tools/multiplex/tests/lit.cfg