Commit Graph

411 Commits

Author SHA1 Message Date
Michal Gorny
a50b783ab7 [cmake] Add LLVM_ENABLE_DIA_SDK option, and expose it in LLVMConfig
Add an explicit LLVM_ENABLE_DIA_SDK option to control building support
for DIA SDK-based debugging. Control its value to match whether DIA SDK
support was found and expose it in LLVMConfig (alike LLVM_ENABLE_ZLIB).

Its value is needed for LLDB to determine whether to run tests requiring
DIA support. Currently it is obtained from llvm/Config/config.h;
however, this file is not available for standalone builds. Following
this change, LLDB will be modified to use the value from LLVMConfig.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@290818 91177308-0d34-0410-b5e6-96231b3b80d8
2017-01-02 18:19:35 +00:00
Peter Collingbourne
4b3d007c4d Re-commit r289184, "Support: Use a 64-bit seek in raw_fd_ostream::seek()." with a configure-time check for lseek64.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@289187 91177308-0d34-0410-b5e6-96231b3b80d8
2016-12-09 05:20:43 +00:00
Chris Bieneman
c14b21af97 [CMake] Add check for HAVE_CRASHREPORTER_INFO
This was also explicitly undef in CMake for some unknown reason.

Hopefully this one won't kill all the bots.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@288977 91177308-0d34-0410-b5e6-96231b3b80d8
2016-12-07 20:55:38 +00:00
Chris Bieneman
1b5c4be5f4 Revert "[CMake] Use cmakedefine01 instead of cmakedefine"
This reverts commit r288959.

Apparently using cmakedefine01 explodes.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@288961 91177308-0d34-0410-b5e6-96231b3b80d8
2016-12-07 19:25:38 +00:00
Chris Bieneman
5472e8e69f [CMake] Use cmakedefine01 instead of cmakedefine
Looks like we need a 01 value for HAVE_CRASHREPORTERCLIENT_H.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@288959 91177308-0d34-0410-b5e6-96231b3b80d8
2016-12-07 19:13:32 +00:00
Chris Bieneman
b7e5e7db85 [CMake] Add a check for HAVE_CRASHREPORTERCLIENT_H
The CMake build has been hardcoding this to undef forever, we shouldn't have been doing that.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@288956 91177308-0d34-0410-b5e6-96231b3b80d8
2016-12-07 18:53:04 +00:00
Mehdi Amini
1e117391d7 Introduces cmake option LLVM_DISABLE_ABI_BREAKING_CHECKS_ENFORCING
Summary:
We recently introduced a feature that enforce at link-time that the
LLVM headers used by a clients are matching the ABI setting of the
LLVM library linked to.

However for clients that are using only headers from ADT and promise
they won't call into LLVM, this is forcing to link libSupport. This
new flag is intended to provide a way to configure LLVM with this
promise for such client.

Reviewers: bob.wilson, compnerd

Subscribers: mgorny, llvm-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@288754 91177308-0d34-0410-b5e6-96231b3b80d8
2016-12-06 01:23:04 +00:00
NAKAMURA Takumi
e6dbf90240 Suppress abi-breaking.h on cygming, for now.
FIXME: Implement checks without weak for them.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@288168 91177308-0d34-0410-b5e6-96231b3b80d8
2016-11-29 17:32:58 +00:00
Mehdi Amini
7b6b980178 Add link-time detection of LLVM_ABI_BREAKING_CHECKS mismatch
The macro LLVM_ENABLE_ABI_BREAKING_CHECKS is moved to a new header
abi-breaking.h, from llvm-config.h. Only headers that are using the
macro are including this new header.

LLVM will define a symbol, either EnableABIBreakingChecks or
DisableABIBreakingChecks depending on the configuration setting for
LLVM_ABI_BREAKING_CHECKS.

The abi-breaking.h header will add weak references to these symbols in
every clients that includes this header. This should ensure that
a mismatch triggers a link failure (or a load time failure for DSO).

On MSVC, the pragma "detect_mismatch" is used instead.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@288082 91177308-0d34-0410-b5e6-96231b3b80d8
2016-11-28 22:23:53 +00:00
Mehdi Amini
c0aec7f2f5 Revert "Add link-time detection of LLVM_ABI_BREAKING_CHECKS mismatch"
This reverts commit r287352, LLDB CI is broken.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@287374 91177308-0d34-0410-b5e6-96231b3b80d8
2016-11-18 20:02:34 +00:00
Mehdi Amini
ed72617844 Add link-time detection of LLVM_ABI_BREAKING_CHECKS mismatch
Summary:
LLVM will define a symbol, either EnableABIBreakingChecks or
DisableABIBreakingChecks depending on the configuration setting for
LLVM_ABI_BREAKING_CHECKS.

The llvm-config.h header will add weak references to these symbols in
every clients that includes this header. This should ensure that
a mismatch triggers a link failure (or a load time failure for DSO).

On MSVC, the pragma "detect_mismatch" is used instead.

Reviewers: rnk, jroelofs

Subscribers: llvm-commits, mgorny

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@287352 91177308-0d34-0410-b5e6-96231b3b80d8
2016-11-18 17:28:10 +00:00
Joerg Sonnenberger
962713f68a Split a comment into generic description and note about the specific
cmake use.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@283027 91177308-0d34-0410-b5e6-96231b3b80d8
2016-10-01 08:05:50 +00:00
Joerg Sonnenberger
1839f8accb Retire LLVM_BINDIR and friends. They haven't been provided with actual
values since the switch to cmake.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@283026 91177308-0d34-0410-b5e6-96231b3b80d8
2016-10-01 08:03:55 +00:00
Joerg Sonnenberger
83660ff710 GC HAVE_STRTOQ
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@283023 91177308-0d34-0410-b5e6-96231b3b80d8
2016-10-01 07:35:08 +00:00
Joerg Sonnenberger
a27efcd029 Retire bugpoint's -R. hack.
It got disconnected during the cmake conversion. For Miscompilation.cpp,
it was purely advisory for the user and the ToolRunner.cpp version was
trying to compensate for libs and bins in the same directory, which
hasn't been the case for a very long time.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@283022 91177308-0d34-0410-b5e6-96231b3b80d8
2016-10-01 07:34:18 +00:00
Joerg Sonnenberger
e68f1f14f3 Sort LLVM_VERSION_INFO
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@282939 91177308-0d34-0410-b5e6-96231b3b80d8
2016-09-30 20:34:02 +00:00
Joerg Sonnenberger
d79cc3deb4 GC left-over from workarounds for missing pid_t and size_t
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@282938 91177308-0d34-0410-b5e6-96231b3b80d8
2016-09-30 20:32:42 +00:00
Joerg Sonnenberger
be24edeca0 GC ENABLE_PIC
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@282936 91177308-0d34-0410-b5e6-96231b3b80d8
2016-09-30 20:30:25 +00:00
Joerg Sonnenberger
dd9e07b78a GC HAVE___DSO_HANDLE
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@282935 91177308-0d34-0410-b5e6-96231b3b80d8
2016-09-30 20:29:19 +00:00
Joerg Sonnenberger
11c0597db0 Correctly expand HOST_LINK_VERSION.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@282934 91177308-0d34-0410-b5e6-96231b3b80d8
2016-09-30 20:28:42 +00:00
Joerg Sonnenberger
37e039ee13 Fix expansion of HAVE_SYS_MMAN_H
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@282933 91177308-0d34-0410-b5e6-96231b3b80d8
2016-09-30 20:27:41 +00:00
Joerg Sonnenberger
93ae5d5aab GC HAVE_LINK_EXPORT_DYNAMIC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@282932 91177308-0d34-0410-b5e6-96231b3b80d8
2016-09-30 20:26:31 +00:00
Joerg Sonnenberger
051cae622f GC HAVE_MMAP and HAVE_MMAP_FILE
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@282931 91177308-0d34-0410-b5e6-96231b3b80d8
2016-09-30 20:24:54 +00:00
Joerg Sonnenberger
513fcd69de Spell comment consistently with other library comments.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@282930 91177308-0d34-0410-b5e6-96231b3b80d8
2016-09-30 20:24:21 +00:00
Joerg Sonnenberger
e3674fa34c Sort LINK_POLLY_INTO_TOOLS.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@282929 91177308-0d34-0410-b5e6-96231b3b80d8
2016-09-30 20:21:35 +00:00
Joerg Sonnenberger
d851cd598a GC STDC_HEADERS.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@282928 91177308-0d34-0410-b5e6-96231b3b80d8
2016-09-30 20:19:02 +00:00
Joerg Sonnenberger
593505d39e Deal with the (historic) MAP_ANONYMOUS vs MAP_ANON directly by using CPP
to check for the former, don't depend on (dangling) HAVE_MMAP_ANONYMOUS.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@282925 91177308-0d34-0410-b5e6-96231b3b80d8
2016-09-30 20:17:23 +00:00
Joerg Sonnenberger
f1086ea04d Retire NEED_DEV_ZERO_FOR_MMAP. It should be needed only on outdated
systems. It wasn't even hooked up in cmake, so problems on such systems
would be visible with 3.9 release already.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@282924 91177308-0d34-0410-b5e6-96231b3b80d8
2016-09-30 20:16:01 +00:00
Joerg Sonnenberger
b540020e6b GC HAVE_LIBDL, HAVE_LIBM and HAVE_LIBOLE32
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@282922 91177308-0d34-0410-b5e6-96231b3b80d8
2016-09-30 20:09:45 +00:00
Joerg Sonnenberger
c4ff9fbd85 Sort HAVE_LIBEDIT.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@282921 91177308-0d34-0410-b5e6-96231b3b80d8
2016-09-30 20:08:36 +00:00
Joerg Sonnenberger
d8588ac73f Turn ENABLE_CRASH_OVERRIDES into a 0/1 definition.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@282919 91177308-0d34-0410-b5e6-96231b3b80d8
2016-09-30 20:06:19 +00:00
Joerg Sonnenberger
2bf78b4d6c Convert ENABLE_BACKTRACES into a 0/1 definition.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@282918 91177308-0d34-0410-b5e6-96231b3b80d8
2016-09-30 20:04:24 +00:00
Joerg Sonnenberger
2e683f12dc GC TIME_WITH_SYS_TIME and TM_IN_SYS_TIME
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@282917 91177308-0d34-0410-b5e6-96231b3b80d8
2016-09-30 19:59:58 +00:00
Joerg Sonnenberger
f39b9e0db5 GC STAT_MACROS_BROKEN.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@282915 91177308-0d34-0410-b5e6-96231b3b80d8
2016-09-30 19:58:44 +00:00
Joerg Sonnenberger
8a2343b89e GC NEED_USCORE.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@282914 91177308-0d34-0410-b5e6-96231b3b80d8
2016-09-30 19:57:54 +00:00
Joerg Sonnenberger
9172a948f1 Turn LLVM_USE_OPROFILE into a 0/1 definition.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@282909 91177308-0d34-0410-b5e6-96231b3b80d8
2016-09-30 19:55:37 +00:00
Joerg Sonnenberger
9ca7d0850f Turn LLVM_USE_INTEL_JITEVENTS into a 0/1 definition.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@282908 91177308-0d34-0410-b5e6-96231b3b80d8
2016-09-30 19:54:25 +00:00
Joerg Sonnenberger
189d5c4135 Turn LLVM_ENABLE_ABI_BREAKING_CHECKS into a 0/1 definition like
LLVM_ENABLE_THREADS. Include llvm-config.h explicitly in headers to make
sure that the definition is available.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@282907 91177308-0d34-0410-b5e6-96231b3b80d8
2016-09-30 19:52:27 +00:00
Joerg Sonnenberger
d4dee422c4 GC HAVE_STRDUP.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@282793 91177308-0d34-0410-b5e6-96231b3b80d8
2016-09-29 21:50:37 +00:00
Joerg Sonnenberger
5673d4cfd9 GC more left-over libtool defines.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@282791 91177308-0d34-0410-b5e6-96231b3b80d8
2016-09-29 21:47:34 +00:00
Joerg Sonnenberger
6506cd61ad GC HAVE_PRINTF_A, HAVE_STD_ISINF_IN_CMATH and HAVE_STD_ISNAN_IN_CMATH
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@282789 91177308-0d34-0410-b5e6-96231b3b80d8
2016-09-29 21:45:45 +00:00
Joerg Sonnenberger
224b8e4d46 HAVE_DIA_SDK is directly checked by value, so define it as 0/1.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@282788 91177308-0d34-0410-b5e6-96231b3b80d8
2016-09-29 21:44:25 +00:00
Joerg Sonnenberger
ac9b3d6062 Move _chsize_s and _Unwind_Backtrace to the correct position.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@282786 91177308-0d34-0410-b5e6-96231b3b80d8
2016-09-29 21:42:36 +00:00
Joerg Sonnenberger
3d4be77c11 Fix HAVE_POSIX_FALLOCATE entry.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@282785 91177308-0d34-0410-b5e6-96231b3b80d8
2016-09-29 21:39:53 +00:00
Joerg Sonnenberger
a9d83e2e34 Fix comments to match autoconf.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@282784 91177308-0d34-0410-b5e6-96231b3b80d8
2016-09-29 21:39:11 +00:00
Joerg Sonnenberger
d067fa4b2d GC HAVE_DLD.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@282783 91177308-0d34-0410-b5e6-96231b3b80d8
2016-09-29 21:37:46 +00:00
Joerg Sonnenberger
00d1c969ed GC HAVE_DYLD, HAVE_PRELOADED_SYMBOLS and HAVE_SHL_LOAD
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@282782 91177308-0d34-0410-b5e6-96231b3b80d8
2016-09-29 21:35:27 +00:00
Joerg Sonnenberger
4f08643ad0 Sort mallctl, fix comment for mallinfo.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@282781 91177308-0d34-0410-b5e6-96231b3b80d8
2016-09-29 21:33:53 +00:00
Joerg Sonnenberger
87632b415d GC HAVE_DLERROR.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@282780 91177308-0d34-0410-b5e6-96231b3b80d8
2016-09-29 21:32:30 +00:00
Joerg Sonnenberger
74f466a640 GC srand48/lrand48/drand48.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@282779 91177308-0d34-0410-b5e6-96231b3b80d8
2016-09-29 21:31:54 +00:00