Skip to content

Commit 1da127b

Browse files
committed
Enable /LARGEADDRESSAWARE for i686-pc-windows-msvc
It's already enabled for i686-pc-windows-gnu.
1 parent 060848c commit 1da127b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/librustc_back/target/i686_pc_windows_msvc.rs

+4
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ pub fn target() -> Target {
1414
let mut base = super::windows_msvc_base::opts();
1515
base.cpu = "pentium4".to_string();
1616

17+
// Mark all dynamic libraries and executables as compatible with the larger 4GiB address
18+
// space available to x86 Windows binaries on x86_64.
19+
base.pre_link_args.push("/LARGEADDRESSAWARE".to_string());
20+
1721
Target {
1822
llvm_target: "i686-pc-windows-msvc".to_string(),
1923
target_endian: "little".to_string(),

0 commit comments

Comments
 (0)