Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r77450 - trunk/libs/context/build
From: oliver.kowalke_at_[hidden]
Date: 2012-03-21 04:20:00


Author: olli
Date: 2012-03-21 04:19:55 EDT (Wed, 21 Mar 2012)
New Revision: 77450
URL: http://svn.boost.org/trac/boost/changeset/77450

Log:
context: support other compiler suites (using gas on POSIX/masm on Windows)

Text files modified:
   trunk/libs/context/build/Jamfile.v2 | 97 ++++++++++++++++++++++++++++++++++++---
   1 files changed, 89 insertions(+), 8 deletions(-)

Modified: trunk/libs/context/build/Jamfile.v2
==============================================================================
--- trunk/libs/context/build/Jamfile.v2 (original)
+++ trunk/libs/context/build/Jamfile.v2 2012-03-21 04:19:55 EDT (Wed, 21 Mar 2012)
@@ -60,6 +60,11 @@
 feature.set-default abi : [ default_abi ] ;
 
 
+actions gas
+{
+ as -o "$(<)" "$(>)"
+}
+
 actions masm
 {
         ml /c /Fo"$(<)" "$(>)"
@@ -96,6 +101,13 @@
    ;
 
 alias asm_context_sources
+ : [ make asm/fcontext_arm_aapcs_elf_gas.o : asm/fcontext_arm_aapcs_elf_gas.S : @gas ]
+ : <abi>aapcs
+ <architecture>arm
+ <binary-format>elf
+ ;
+
+alias asm_context_sources
    : asm/fcontext_mips32_o32_elf_gas.S
    : <abi>o32
      <architecture>mips1
@@ -104,6 +116,13 @@
    ;
 
 alias asm_context_sources
+ : [ make asm/fcontext_mips32_o32_elf_gas.o : asm/fcontext_mips32_o32_elf_gas.S : @gas ]
+ : <abi>o32
+ <architecture>mips1
+ <binary-format>elf
+ ;
+
+alias asm_context_sources
    : asm/fcontext_ppc32_sysv_elf_gas.S
    : <abi>sysv
      <address-model>32
@@ -113,6 +132,14 @@
    ;
 
 alias asm_context_sources
+ : [ make asm/fcontext_ppc32_sysv_elf_gas.o : asm/fcontext_ppc32_sysv_elf_gas.S : @gas ]
+ : <abi>sysv
+ <address-model>32
+ <architecture>power
+ <binary-format>elf
+ ;
+
+alias asm_context_sources
    : asm/fcontext_ppc64_sysv_elf_gas.S
    : <abi>sysv
      <address-model>64
@@ -122,6 +149,14 @@
    ;
 
 alias asm_context_sources
+ : [ make asm/fcontext_ppc64_sysv_elf_gas.o : asm/fcontext_ppc64_sysv_elf_gas.S : @gas ]
+ : <abi>sysv
+ <address-model>64
+ <architecture>power
+ <binary-format>elf
+ ;
+
+alias asm_context_sources
    : asm/fcontext_i386_sysv_elf_gas.S
    : <abi>sysv
      <address-model>32
@@ -140,6 +175,14 @@
    ;
 
 alias asm_context_sources
+ : [ make asm/fcontext_i386_sysv_elf_gas.o : asm/fcontext_i386_sysv_elf_gas.S : @gas ]
+ : <abi>sysv
+ <address-model>32
+ <architecture>x86
+ <binary-format>elf
+ ;
+
+alias asm_context_sources
    : asm/fcontext_x86_64_sysv_elf_gas.S
    : <abi>sysv
      <address-model>64
@@ -158,6 +201,15 @@
    ;
 
 alias asm_context_sources
+ : [ make asm/fcontext_x86_64_sysv_elf_gas.o : asm/fcontext_x86_64_sysv_elf_gas.S : @gas ]
+ : <abi>sysv
+ <address-model>64
+ <architecture>x86
+ <binary-format>elf
+ ;
+
+
+alias asm_context_sources
    : asm/fcontext_i386_sysv_macho_gas.S
    : <abi>sysv
      <address-model>32
@@ -168,6 +220,25 @@
    ;
 
 alias asm_context_sources
+ : asm/fcontext_i386_sysv_macho_gas.S
+ : <abi>sysv
+ <address-model>32
+ <architecture>x86
+ <binary-format>mach-o
+ <target-os>darwin
+ <toolset>intel
+ ;
+
+alias asm_context_sources
+ : [ make asm/fcontext_i386_sysv_macho_gas.o : asm/fcontext_i386_sysv_macho_gas.S : @gas ]
+ : <abi>sysv
+ <address-model>32
+ <architecture>x86
+ <binary-format>mach-o
+ <target-os>darwin
+ ;
+
+alias asm_context_sources
    : asm/fcontext_x86_64_sysv_macho_gas.S
    : <abi>sysv
      <address-model>64
@@ -188,15 +259,15 @@
    ;
 
 alias asm_context_sources
- : [ make asm/fcontext_i386_ms_pe_masm.o : asm/fcontext_i386_ms_pe_masm.asm : @masm ]
- : <abi>ms
- <address-model>32
+ : [ make asm/fcontext_x86_64_sysv_macho_gas.o : asm/fcontext_x86_64_sysv_macho_gas.S : @gas ]
+ : <abi>sysv
+ <address-model>64
      <architecture>x86
- <binary-format>pe
- <target-os>windows
- <toolset>gcc
+ <binary-format>mach-o
+ <target-os>darwin
    ;
 
+
 alias asm_context_sources
    : asm/fcontext_i386_ms_pe_masm.asm
    : <abi>ms
@@ -218,9 +289,9 @@
    ;
 
 alias asm_context_sources
- : [ make asm/fcontext_x86_64_ms_pe_masm.o : asm/fcontext_x86_64_ms_pe_masm.asm : @masm64 ]
+ : [ make asm/fcontext_i386_ms_pe_masm.o : asm/fcontext_i386_ms_pe_masm.asm : @masm ]
    : <abi>ms
- <address-model>64
+ <address-model>32
      <architecture>x86
      <binary-format>pe
      <target-os>windows
@@ -247,6 +318,16 @@
          <toolset>msvc
    ;
 
+alias asm_context_sources
+ : [ make asm/fcontext_x86_64_ms_pe_masm.o : asm/fcontext_x86_64_ms_pe_masm.asm : @masm64 ]
+ : <abi>ms
+ <address-model>64
+ <architecture>x86
+ <binary-format>pe
+ <target-os>windows
+ <toolset>gcc
+ ;
+
 explicit asm_context_sources ;
 
 


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