mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
ELF: Change FileSize back to a uint64_t.
This lets us detect file size overflows when creating a 64-bit binary on a 32-bit machine. Differential Revision: https://reviews.llvm.org/D58840 llvm-svn: 355218
This commit is contained in:
parent
bd51fb8638
commit
d0d768581e
@ -53,6 +53,12 @@ write_lit_cfg("lit_site_cfg") {
|
||||
} else {
|
||||
extra_values += [ "HAVE_LIBZ=0" ] # Must be 0.
|
||||
}
|
||||
|
||||
if (current_cpu == "x64" || current_cpu == "arm64") {
|
||||
extra_values += [ "CMAKE_SIZEOF_VOID_P=8" ]
|
||||
} else {
|
||||
extra_values += [ "CMAKE_SIZEOF_VOID_P=4" ]
|
||||
}
|
||||
}
|
||||
|
||||
write_lit_cfg("lit_unit_site_cfg") {
|
||||
|
Loading…
Reference in New Issue
Block a user