From 840201ae895d6f88c4f6bb0c3fe48e8cefe959cd Mon Sep 17 00:00:00 2001 From: Boris Gubenko Date: Wed, 5 Sep 2007 23:43:40 +0000 Subject: [PATCH] Boost.Build V2 toolset for the HP aC++ compiler on PA-RISC [SVN r39132] --- v2/tools/acc_pa_risc.jam | 100 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 100 insertions(+) create mode 100644 v2/tools/acc_pa_risc.jam diff --git a/v2/tools/acc_pa_risc.jam b/v2/tools/acc_pa_risc.jam new file mode 100644 index 000000000..3c2b760f8 --- /dev/null +++ b/v2/tools/acc_pa_risc.jam @@ -0,0 +1,100 @@ +# Copyright Vladimir Prus 2004. +# Copyright Toon Knapen 2004. +# Copyright Boris Gubenko 2007. +# Distributed under the Boost Software License, Version 1.0. +# (See acc_pa_riscompanying file LICENSE_1_0.txt +# or copy at http://www.boost.org/LICENSE_1_0.txt) + +# +# Boost.Build V2 toolset for the HP aC++ compiler. +# + +import toolset : flags ; +import feature ; +import generators ; + +feature.extend toolset : acc_pa_risc ; +toolset.inherit acc_pa_risc : unix ; +generators.override builtin.lib-generator : acc_pa_risc.prebuilt ; +generators.override acc_pa_risc.searched-lib-generator : searched-lib-generator ; +feature.subfeature toolset acc_pa_risc : version ; + +# Configures the acc_pa_risc toolset. +rule init ( version ? : path * ) +{ +} + + +# Declare generators +generators.register-c-compiler acc_pa_risc.compile.c : C : OBJ : acc_pa_risc ; +generators.register-c-compiler acc_pa_risc.compile.c++ : CPP : OBJ : acc_pa_risc ; + +# Declare flags. +flags acc_pa_risc CFLAGS off : ; +flags acc_pa_risc CFLAGS speed : -O3 ; +flags acc_pa_risc CFLAGS space : -O2 ; + +flags acc_pa_risc CFLAGS off : +d ; +flags acc_pa_risc CFLAGS on : ; +flags acc_pa_risc CFLAGS full : ; + +flags acc_pa_risc C++FLAGS off : ; +flags acc_pa_risc C++FLAGS on : ; + +flags acc_pa_risc C++FLAGS off : ; +flags acc_pa_risc C++FLAGS on : ; + +# We want the full path to the sources in the debug symbols because otherwise +# the debugger won't find the sources when we use boost.build. +flags acc_pa_risc CFLAGS on : -g ; +flags acc_pa_risc LINKFLAGS on : -g ; +flags acc_pa_risc LINKFLAGS off : -s ; + +# V2 does not have , not sure what this meant in V1. +# flags acc_pa_risc CFLAGS true : +Z ; + +flags acc_pa_risc CFLAGS on : -pg ; +flags acc_pa_risc LINKFLAGS on : -pg ; + +flags acc_pa_risc CFLAGS ; +flags acc_pa_risc C++FLAGS ; +flags acc_pa_risc DEFINES ; +flags acc_pa_risc UNDEFS ; +flags acc_pa_risc HDRS ; +flags acc_pa_risc STDHDRS ; +flags acc_pa_risc LINKFLAGS ; +flags acc_pa_risc ARFLAGS ; + +flags acc_pa_risc LIBPATH ; +flags acc_pa_risc NEEDLIBS ; +flags acc_pa_risc FINDLIBS ; +flags acc_pa_risc FINDLIBS ; + +# Select the compiler name acc_pa_riscording to the threading model. +flags acc_pa_risc CFLAGS multi : -mt ; +flags acc_pa_risc LINKFLAGS multi : -mt ; + +actions acc_pa_risc.link bind NEEDLIBS +{ + aCC $(LINKFLAGS) +DD64 -o "$(<[1])" -L$(LIBPATH) -L$(STDLIBPATH) "$(>)" "$(NEEDLIBS)" "$(NEEDLIBS)" -l$(FINDLIBS) +} + +actions acc_pa_risc.link.dll bind NEEDLIBS +{ + aCC -b $(LINKFLAGS) +DD64 -o "$(<[1])" -L$(LIBPATH) -L$(STDLIBPATH) "$(>)" "$(NEEDLIBS)" "$(NEEDLIBS)" -l$(FINDLIBS) +} + +actions acc_pa_risc.compile.c +{ + aCC -Ae +DD64 -c -I$(BOOST_ROOT) -U$(UNDEFS) -D$(DEFINES) $(CFLAGS) -I"$(HDRS)" -I"$(STDHDRS)" -o "$(<)" "$(>)" +} + +actions acc_pa_risc.compile.c++ +{ + aCC -AA +DD64 -c -I$(BOOST_ROOT) -U$(UNDEFS) -D$(DEFINES) $(CFLAGS) $(C++FLAGS) -I"$(HDRS)" -I"$(STDHDRS)" -o "$(<)" "$(>)" +} + +actions updated together piecemeal acc_pa_risc.archive +{ + ar ru$(ARFLAGS:E="") "$(<)" "$(>)" +}