mirror of
https://git.proxmox.com/git/llvm-toolchain
synced 2025-06-28 19:11:25 +00:00
18 lines
1.1 KiB
Diff
18 lines
1.1 KiB
Diff
Index: llvm-toolchain-8-8/compiler-rt/cmake/base-config-ix.cmake
|
|
===================================================================
|
|
--- llvm-toolchain-8-8.orig/compiler-rt/cmake/base-config-ix.cmake
|
|
+++ llvm-toolchain-8-8/compiler-rt/cmake/base-config-ix.cmake
|
|
@@ -195,10 +195,10 @@ macro(test_targets)
|
|
# clang's default CPU's. In the 64-bit case, we must also specify the ABI
|
|
# since the default ABI differs between gcc and clang.
|
|
# FIXME: Ideally, we would build the N32 library too.
|
|
- test_target_arch(mipsel "" "-mips32r2" "-mabi=32")
|
|
+ test_target_arch(mipsel "" "-mips32r2" "-mabi=32" "-D_LARGEFILE_SOURCE" "-D_FILE_OFFSET_BITS=64")
|
|
test_target_arch(mips64el "" "-mips64r2" "-mabi=64")
|
|
elseif("${COMPILER_RT_DEFAULT_TARGET_ARCH}" MATCHES "mips")
|
|
- test_target_arch(mips "" "-mips32r2" "-mabi=32")
|
|
+ test_target_arch(mips "" "-mips32r2" "-mabi=32" "-D_LARGEFILE_SOURCE" "-D_FILE_OFFSET_BITS=64")
|
|
test_target_arch(mips64 "" "-mips64r2" "-mabi=64")
|
|
elseif("${COMPILER_RT_DEFAULT_TARGET_ARCH}" MATCHES "arm")
|
|
if(WIN32)
|