summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine/JITLink/EHFrameSupportImpl.h
diff options
context:
space:
mode:
authorSimon Atanasyan <simon@atanasyan.com>2019-05-15 22:27:19 +0000
committerSimon Atanasyan <simon@atanasyan.com>2019-05-15 22:27:19 +0000
commit7684d05d95b9369fa0454b525093ed04ee91b1e1 (patch)
treebc81eadb3b1f570edd590f5d230eddb237737aff /llvm/lib/ExecutionEngine/JITLink/EHFrameSupportImpl.h
parenta05ffdbfc7e28523261c7599b4ebae8f7c99e823 (diff)
downloadbcm5719-llvm-7684d05d95b9369fa0454b525093ed04ee91b1e1.tar.gz
bcm5719-llvm-7684d05d95b9369fa0454b525093ed04ee91b1e1.zip
[mips] Always use _LARGEFILE_SOURCE / _FILE_OFFSET_BITS for building MIPS 32-bit
When MIPS 32-bit compiler-rt is building on 32-bit host or using 32-bit `DLLVM_HOST_TRIPLE` the `_LARGEFILE_SOURCE` and the `_FILE_OFFSET_BITS=64` macros defined by statements from the `HandleLLVMOptions.cmake`. In case of building 32-bit libraries on 64-bit host using default host triple these macros are not defined. As a result assertions check a consistency between the `struct_kernel_stat_sz` constant and the `struct_kernel_stat_sz` start to fail. To resolve this problem and enable building both 32/64-bit versions of MIPS compiler-rt libraries on 64-bit host at once always explicitly define the `_LARGEFILE_SOURCE` and the `_FILE_OFFSET_BITS=64` macros for MIPS 32-bit. llvm-svn: 360825
Diffstat (limited to 'llvm/lib/ExecutionEngine/JITLink/EHFrameSupportImpl.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud