diff options
| author | Rainer Orth <ro@gcc.gnu.org> | 2019-07-30 10:33:20 +0000 |
|---|---|---|
| committer | Rainer Orth <ro@gcc.gnu.org> | 2019-07-30 10:33:20 +0000 |
| commit | 8d3c740f26b1122a60e1ad21576f152013535708 (patch) | |
| tree | 8b578e1d26348d088b820134dccf79c506969637 /llvm/cmake | |
| parent | 38496d5bd9a00af51bebd6edb22b9ec7231cd5ba (diff) | |
| download | bcm5719-llvm-8d3c740f26b1122a60e1ad21576f152013535708.tar.gz bcm5719-llvm-8d3c740f26b1122a60e1ad21576f152013535708.zip | |
[CMake] Define _FILE_OFFSET_BITS=64 on Solaris
This is the compantion patch to https://reviews.llvm.org/D64482, needed to ensure
that builds with host compilers that don't yet predefine _FILE_OFFSET_BITS=64 on
Solaris succeed by always making the host and freshly built clang consistent.
Tested on x86_64-pc-solaris2.11.
Differential Revision: https://reviews.llvm.org/D64483
llvm-svn: 367304
Diffstat (limited to 'llvm/cmake')
| -rw-r--r-- | llvm/cmake/config-ix.cmake | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/cmake/config-ix.cmake b/llvm/cmake/config-ix.cmake index 0218d42eb89..4c585b8fd5a 100644 --- a/llvm/cmake/config-ix.cmake +++ b/llvm/cmake/config-ix.cmake @@ -30,6 +30,12 @@ if (UNIX AND ${CMAKE_SYSTEM_NAME} MATCHES "AIX") list(APPEND CMAKE_REQUIRED_DEFINITIONS "-D_LARGE_FILE_API") endif() +# Do checks with _FILE_OFFSET_BITS=64 on Solaris, because we will build +# with those too. +if (UNIX AND ${CMAKE_SYSTEM_NAME} MATCHES "SunOS") + list(APPEND CMAKE_REQUIRED_DEFINITIONS "-D_FILE_OFFSET_BITS=64") +endif() + # include checks check_include_file(dlfcn.h HAVE_DLFCN_H) check_include_file(errno.h HAVE_ERRNO_H) |

