[Testing] Workaround libcxx bug when OS is "none"
authorDavid Zarzycki <dave@znu.io>
Thu, 26 Sep 2019 08:19:44 +0000 (08:19 +0000)
committerDavid Zarzycki <dave@znu.io>
Thu, 26 Sep 2019 08:19:44 +0000 (08:19 +0000)
commitb6c80623d1379130dd1666db0e700b6a8046eb3b
tree98e6b37a0df6f91bcbdab5ba4ff787121612ca71
parentbbb0442bbfcfbef7d224551006e22d9c916e6543
[Testing] Workaround libcxx bug when OS is "none"

If clang is configured to use libcxx as the default C++ standard
library, then using "none" for the OS in the target triple will cause
libcxx to #error needlessly. Passing -nostdinc++ is a workaround for
these tests. See also: https://reviews.llvm.org/D68075

Please note: this workaround will probably exist for a few years until
the installed version of libcxx is updated.

llvm-svn: 372949
clang/test/Headers/arm-fp16-header.c
clang/test/Headers/arm-neon-header.c