Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r54375 - trunk/tools/build/v2/tools
From: juergen.hunold_at_[hidden]
Date: 2009-06-26 07:25:24


Author: jhunold
Date: 2009-06-26 07:25:24 EDT (Fri, 26 Jun 2009)
New Revision: 54375
URL: http://svn.boost.org/trac/boost/changeset/54375

Log:
Specify target machine type to avoid linker warnings.

Text files modified:
   trunk/tools/build/v2/tools/msvc.jam | 5 +++++
   1 files changed, 5 insertions(+), 0 deletions(-)

Modified: trunk/tools/build/v2/tools/msvc.jam
==============================================================================
--- trunk/tools/build/v2/tools/msvc.jam (original)
+++ trunk/tools/build/v2/tools/msvc.jam 2009-06-26 07:25:24 EDT (Fri, 26 Jun 2009)
@@ -254,6 +254,11 @@
         # 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 ;
 }


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk