]> granicus.if.org Git - clang/commit
[test] Fix clang-test for FreeBSD and NetBSD
authorTim Shen <timshen91@gmail.com>
Tue, 24 Oct 2017 03:11:02 +0000 (03:11 +0000)
committerTim Shen <timshen91@gmail.com>
Tue, 24 Oct 2017 03:11:02 +0000 (03:11 +0000)
commita45d5bb59f1d95d850d6bf1ec2448ac6cf653415
tree2ff141d94656b7e1c245cc8a6d1e93716411c428
parentbca81dc70a81c58378cc853256544386194ced1d
[test] Fix clang-test for FreeBSD and NetBSD

Lit tries to inject the shared library paths, but no action is taken
when platform.system() is not recognized, results in an environment
variable with an empty name, which is illegal.

The patch fixes this mechanism for FreeBSD and NetBSD, and gives an
warning on other platforms, so that the latecomers don't have to spend
time on debugging lit.

Thanks Zhihao Yuan for the patch!

Differential Revision: https://reviews.llvm.org/D39162

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@316411 91177308-0d34-0410-b5e6-96231b3b80d8
test/Unit/lit.cfg.py