Boost logo

Boost-Commit :

From: ghost_at_[hidden]
Date: 2007-12-01 09:56:23


Author: vladimir_prus
Date: 2007-12-01 09:56:23 EST (Sat, 01 Dec 2007)
New Revision: 41532
URL: http://svn.boost.org/trac/boost/changeset/41532

Log:
Change the detection of 64-bit windows to handle EM64T processors.

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

Modified: trunk/tools/build/v2/tools/msvc.jam
==============================================================================
--- trunk/tools/build/v2/tools/msvc.jam (original)
+++ trunk/tools/build/v2/tools/msvc.jam 2007-12-01 09:56:23 EST (Sat, 01 Dec 2007)
@@ -310,8 +310,16 @@
                     # and x86_ia64 is right one.
                     setup-option = x86 x86_amd64 x86_ia64 ;
                     
- # Use a native x64 compiler if possible
+ # When using 64-bit Windows, and targeting 64-bit,
+ # it's possible to use native 64-bit compiler, which is
+ # selected by the "amd64" parameter to vcvarsall.bat.
+ # There are two variables we can use --
+ # PROCESSOR_ARCHITECTURE and PROCESSOR_IDENTIFIER.
+ # The first reflects processor proper, and the second is
+ # empirically found to be always x86 when using 32-bit
+ # windows.
                     if [ MATCH ^(AMD64) : [ os.environ PROCESSOR_IDENTIFIER ] ]
+ || [ MATCH ^(EM64T) : [ os.environ PROCESSOR_IDENTIFIER ] ]
                     {
                         setup-option = x86 amd64 x86_ia64 ;
                     }


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