diff options
| author | Mehdi Amini <mehdi.amini@apple.com> | 2015-09-16 05:34:32 +0000 |
|---|---|---|
| committer | Mehdi Amini <mehdi.amini@apple.com> | 2015-09-16 05:34:32 +0000 |
| commit | d178f4fc895b432008fcd8a0a49a13d951fecfe4 (patch) | |
| tree | 19aeac350e85872308d275d4fe8cdce821771d5d /llvm/include | |
| parent | 8e468d6388ad3a91c2a835529729515c19f74186 (diff) | |
| download | bcm5719-llvm-d178f4fc895b432008fcd8a0a49a13d951fecfe4.tar.gz bcm5719-llvm-d178f4fc895b432008fcd8a0a49a13d951fecfe4.zip | |
Make the default triple optional by allowing an empty string
When building LLVM as a (potentially dynamic) library that can be linked against
by multiple compilers, the default triple is not really meaningful.
We allow to explicitely set it to an empty string when configuring LLVM.
In this case, said "target independent" tests in the test suite that are using
the default triple are disabled by matching the newly available feature
"default_triple".
Reviewers: probinson, echristo
Differential Revision: http://reviews.llvm.org/D12660
From: Mehdi Amini <mehdi.amini@apple.com>
llvm-svn: 247775
Diffstat (limited to 'llvm/include')
| -rw-r--r-- | llvm/include/llvm/Config/config.h.cmake | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/include/llvm/Config/config.h.cmake b/llvm/include/llvm/Config/config.h.cmake index 0917762cd59..6a5ac889e6f 100644 --- a/llvm/include/llvm/Config/config.h.cmake +++ b/llvm/include/llvm/Config/config.h.cmake @@ -420,8 +420,10 @@ /* Installation directory for data files */ #cmakedefine LLVM_DATADIR "${LLVM_DATADIR}" -/* Target triple LLVM will generate code for by default */ -#cmakedefine LLVM_DEFAULT_TARGET_TRIPLE "${LLVM_DEFAULT_TARGET_TRIPLE}" +/* Target triple LLVM will generate code for by default + * Doesn't use `cmakedefine` because it is allowed to be empty. + */ +#define LLVM_DEFAULT_TARGET_TRIPLE "${LLVM_DEFAULT_TARGET_TRIPLE}" /* Installation directory for documentation */ #cmakedefine LLVM_DOCSDIR "${LLVM_DOCSDIR}" |

