mirror of
https://github.com/boostorg/build.git
synced 2026-02-13 12:22:17 +00:00
Specify target machine type to avoid linker warnings.
[SVN r54375]
This commit is contained in:
@@ -254,6 +254,11 @@ rule configure-version-specific ( toolset : version : conditions )
|
||||
# 8.0 and above only has multi-threaded static RTL.
|
||||
toolset.flags $(toolset).compile CFLAGS $(conditions)/<runtime-debugging>off/<runtime-link>static/<threading>single : /MT ;
|
||||
toolset.flags $(toolset).compile CFLAGS $(conditions)/<runtime-debugging>on/<runtime-link>static/<threading>single : /MTd ;
|
||||
|
||||
# Specify target machine type so the linker will not need to guess.
|
||||
toolset.flags $(toolset).link LINKFLAGS $(conditions)/$(.cpu-arch-amd64) : /MACHINE:X64 ;
|
||||
toolset.flags $(toolset).link LINKFLAGS $(conditions)/$(.cpu-arch-i386) : /MACHINE:X86 ;
|
||||
toolset.flags $(toolset).link LINKFLAGS $(conditions)/$(.cpu-arch-ia64) : /MACHINE:IA64 ;
|
||||
}
|
||||
toolset.pop-checking-for-flags-module ;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user