aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineModuleInfo.cpp
diff options
context:
space:
mode:
authorSimon Dardis <simon.dardis@imgtec.com>2017-05-18 13:19:35 +0000
committerSimon Dardis <simon.dardis@imgtec.com>2017-05-18 13:19:35 +0000
commit657899bad1abb1a93c088949ecdfd9b91ecadb4a (patch)
tree9081347665bec2729518f185466c57b0fb905194 /llvm/lib/CodeGen/MachineModuleInfo.cpp
parent7bca59152adcc521f97a4e13128b214198e6d6df (diff)
downloadllvm-657899bad1abb1a93c088949ecdfd9b91ecadb4a.zip
llvm-657899bad1abb1a93c088949ecdfd9b91ecadb4a.tar.gz
llvm-657899bad1abb1a93c088949ecdfd9b91ecadb4a.tar.bz2
[compiler-rt][cmake] Build unit tests conditionally with _FILE_OFFSET_BITS=64 and _LARGEFILE_SOURCE
The sanitizer library unit tests for libc can get a different definition of 'struct stat' to what the sanitizer library is built with for certain targets. For MIPS the size element of 'struct stat' is after a macro guarded explicit padding element. This patch resolves any possible inconsistency by adding the same _FILE_OFFSET_BITS=64 and _LARGE_SOURCE with the same conditions as the sanitizer library to the build flags for the unit tests. This resolves a recurring build failure on the MIPS buildbots due to 'struct stat' defintion differences. Reviewers: slthakur Differential Revision: https://reviews.llvm.org/D33131 llvm-svn: 303350
Diffstat (limited to 'llvm/lib/CodeGen/MachineModuleInfo.cpp')
0 files changed, 0 insertions, 0 deletions