[builtins] Make sure builtin compile tests respect CMAKE_C_COMPILER_TARGET
authorFrancis Ricci <francisjricci@gmail.com>
Thu, 25 Aug 2016 16:15:45 +0000 (16:15 +0000)
committerFrancis Ricci <francisjricci@gmail.com>
Thu, 25 Aug 2016 16:15:45 +0000 (16:15 +0000)
commit341b1fea7c2be567754b9430f89564cb9655ec30
tree9bbc83124b70ec2e8ae8ea676d7b32ef526dd862
parent567a1d0478204a7f5362d38d148313cbc16ed6c0
[builtins] Make sure builtin compile tests respect CMAKE_C_COMPILER_TARGET

Summary:
Since we generate the compiler invocation on our own, we need to
manually add -target if CMAKE_C_COMPILER_TARGET has been specified.

Reviewers: compnerd, beanz

Subscribers: llvm-commits

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

llvm-svn: 279747
compiler-rt/cmake/Modules/BuiltinTests.cmake