]> granicus.if.org Git - llvm/commitdiff
ELF: Change FileSize back to a uint64_t.
authorPeter Collingbourne <peter@pcc.me.uk>
Fri, 1 Mar 2019 18:53:41 +0000 (18:53 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Fri, 1 Mar 2019 18:53:41 +0000 (18:53 +0000)
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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@355218 91177308-0d34-0410-b5e6-96231b3b80d8

utils/gn/secondary/lld/test/BUILD.gn

index b62fbc1555ef3f6b0c9ae2c29bb89920c13f8e4a..6af53eb37e1911c24819336abd1847c2e99cf829 100644 (file)
@@ -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") {