Re: [Boost-bugs] [Boost C++ Libraries] #798: bjam: always define OSPLAT

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #798: bjam: always define OSPLAT
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2007-09-16 21:53:51


#798: bjam: always define OSPLAT
-------------------------------+--------------------------------------------
  Reporter: nobody | Owner: grafik
      Type: Patches | Status: assigned
 Milestone: Boost.Jam 3.1.15 | Component: bjam
   Version: None | Severity: Problem
Resolution: None | Keywords:
-------------------------------+--------------------------------------------
Changes (by grafik):

  * severity: => Problem
  * milestone: => Boost.Jam 3.1.15

Old description:

> {{{
> Please patch boost/tools/jam/src/jam.h so that OSPLAT is always defined.
> Note that I don't know if I should have removed "!defined( OS_AS400 )" in
> the X86 section.
>
> $ cvs diff -c jam.h
> Index: jam.h
> ===================================================================
> RCS file: /cvsroot/boost/boost/tools/jam/src/jam.h,v
> retrieving revision 1.21
> diff -c -r1.21 jam.h
> *** jam.h 7 Sep 2006 03:57:02 -0000 1.21
> --- jam.h 20 Dec 2006 22:34:30 -0000
> ***************
> *** 447,476 ****
> defined( __alpha__ )
> # define OSPLAT "OSPLAT=AXP"
> # endif
> !
> # if defined( _i386_ ) || \
> defined( __i386__ ) || \
> defined( _M_IX86 )
> - # if !defined( OS_FREEBSD ) && \
> - !defined( OS_DRAGONFLYBSD ) && \
> - !defined( OS_OS2 ) && \
> - !defined( OS_AS400 )
> # define OSPLAT "OSPLAT=X86"
> - # endif
> # endif
>
> # ifdef __sparc__
> - # if !defined( OS_SUNOS ) && \
> - !defined( OS_SOLARIS )
> # define OSPLAT "OSPLAT=SPARC"
> # endif
> - # endif
>
> # ifdef __mips__
> - # if !defined( OS_SGI )
> # define OSPLAT "OSPLAT=MIPS"
> # endif
> - # endif
>
> # ifdef __arm__
> # define OSPLAT "OSPLAT=ARM"
> --- 447,472 ----
> defined( __alpha__ )
> # define OSPLAT "OSPLAT=AXP"
> # endif
> !
> # if defined( _i386_ ) || \
> defined( __i386__ ) || \
> defined( _M_IX86 )
> # define OSPLAT "OSPLAT=X86"
> # endif
>
> + # if defined( __x86_64__ ) || \
> + defined( __amd64__ ) || \
> + defined( _M_AMD64 )
> + # define OSPLAT "OSPLAT=X86_64"
> + # endif
> +
> # ifdef __sparc__
> # define OSPLAT "OSPLAT=SPARC"
> # endif
>
> # ifdef __mips__
> # define OSPLAT "OSPLAT=MIPS"
> # endif
>
> # ifdef __arm__
> # define OSPLAT "OSPLAT=ARM"
>
> }}}

New description:

 {{{
 Please patch boost/tools/jam/src/jam.h so that OSPLAT is always defined.
 Note that I don't know if I should have removed "!defined( OS_AS400 )" in
 the X86 section.

 $ cvs diff -c jam.h
 Index: jam.h
 ===================================================================
 RCS file: /cvsroot/boost/boost/tools/jam/src/jam.h,v
 retrieving revision 1.21
 diff -c -r1.21 jam.h
 *** jam.h 7 Sep 2006 03:57:02 -0000 1.21
 --- jam.h 20 Dec 2006 22:34:30 -0000
 ***************
 *** 447,476 ****
        defined( __alpha__ )
   # define OSPLAT "OSPLAT=AXP"
   # endif
 !
   # if defined( _i386_ ) || \
        defined( __i386__ ) || \
        defined( _M_IX86 )
 - # if !defined( OS_FREEBSD ) && \
 - !defined( OS_DRAGONFLYBSD ) && \
 - !defined( OS_OS2 ) && \
 - !defined( OS_AS400 )
   # define OSPLAT "OSPLAT=X86"
 - # endif
   # endif

   # ifdef __sparc__
 - # if !defined( OS_SUNOS ) && \
 - !defined( OS_SOLARIS )
   # define OSPLAT "OSPLAT=SPARC"
   # endif
 - # endif

   # ifdef __mips__
 - # if !defined( OS_SGI )
   # define OSPLAT "OSPLAT=MIPS"
   # endif
 - # endif

   # ifdef __arm__
   # define OSPLAT "OSPLAT=ARM"
 --- 447,472 ----
        defined( __alpha__ )
   # define OSPLAT "OSPLAT=AXP"
   # endif
 !
   # if defined( _i386_ ) || \
        defined( __i386__ ) || \
        defined( _M_IX86 )
   # define OSPLAT "OSPLAT=X86"
   # endif

 + # if defined( __x86_64__ ) || \
 + defined( __amd64__ ) || \
 + defined( _M_AMD64 )
 + # define OSPLAT "OSPLAT=X86_64"
 + # endif
 +
   # ifdef __sparc__
   # define OSPLAT "OSPLAT=SPARC"
   # endif

   # ifdef __mips__
   # define OSPLAT "OSPLAT=MIPS"
   # endif

   # ifdef __arm__
   # define OSPLAT "OSPLAT=ARM"

 }}}

--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/798#comment:3>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.


This archive was generated by hypermail 2.1.7 : 2017-02-16 18:49:56 UTC