OSDN Git Service

[test][ARM][CMSE] Use clang_cc1 in arm_cmse.h tests
authorHubert Tong <hubert.reinterpretcast@gmail.com>
Fri, 15 May 2020 21:12:38 +0000 (17:12 -0400)
committerHubert Tong <hubert.reinterpretcast@gmail.com>
Fri, 15 May 2020 21:34:00 +0000 (17:34 -0400)
commit3f5fc73a9d52fc7f128dc4e53ccc63b88fc44fb6
tree119e6a2f4bbd6a9efcc03b2d26d52659fe0b4c6f
parent15f0f824b36ea06fcb17bc56ecd181520b4bfbcf
[test][ARM][CMSE] Use clang_cc1 in arm_cmse.h tests

Summary:
The `arm_cmse.h` header includes standard headers, but some tests that
include this header explicitly specify a target. The standard headers
found via the standard include paths need not be compatible with the
explicitly-specified target from the tests. In order to avoid test
failures caused by such incompatibility, this patch uses `%clang_cc1`,
which doesn't pick up the host system headers.

Reviewed By: chill

Differential Revision: https://reviews.llvm.org/D79693
clang/test/CodeGen/arm-cmse-nonsecure.c
clang/test/CodeGen/arm-cmse-secure.c