File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,15 @@ pub fn target() -> Target {
14
14
let mut base = super :: windows_msvc_base:: opts ( ) ;
15
15
base. cpu = "pentium4" . to_string ( ) ;
16
16
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
+
21
+ // Ensure the linker will only produce an image if it can also produce a table of
22
+ // the image's safe exception handlers.
23
+ // https://msdn.microsoft.com/en-us/library/9a89h429.aspx
24
+ base. pre_link_args . push ( "/SAFESEH" . to_string ( ) ) ;
25
+
17
26
Target {
18
27
llvm_target : "i686-pc-windows-msvc" . to_string ( ) ,
19
28
target_endian : "little" . to_string ( ) ,
You can’t perform that action at this time.
0 commit comments