]> git.lizzy.rs Git - rust.git/commitdiff
Enable /LARGEADDRESSAWARE for i686-pc-windows-msvc
authorOliver Middleton <olliemail27@gmail.com>
Wed, 3 Feb 2016 13:28:18 +0000 (13:28 +0000)
committerOliver Middleton <olliemail27@gmail.com>
Thu, 11 Feb 2016 12:07:57 +0000 (12:07 +0000)
It's already enabled for i686-pc-windows-gnu.

src/librustc_back/target/i686_pc_windows_msvc.rs

index 96b2d37ab2088135a374386130487e12905b1533..7079df1ab3b8e94a9a94a3b3306665d34c979c46 100644 (file)
@@ -14,6 +14,10 @@ pub fn target() -> Target {
     let mut base = super::windows_msvc_base::opts();
     base.cpu = "pentium4".to_string();
 
+    // Mark all dynamic libraries and executables as compatible with the larger 4GiB address
+    // space available to x86 Windows binaries on x86_64.
+    base.pre_link_args.push("/LARGEADDRESSAWARE".to_string());
+
     Target {
         llvm_target: "i686-pc-windows-msvc".to_string(),
         target_endian: "little".to_string(),