/usr/share/boost-build/src/tools
NameSizeModeActions
doxygen/-0755rm
features/-0755rm
generators/-0755rm
types/-0755rm
xsltproc/-0755rm
acc.jam48000644editdlrm
asciidoctor.jam64800644editdlrm
auto-index.jam83240644editdlrm
bison.jam5890644editdlrm
boostbook-config.jam3890644editdlrm
boostbook.jam240560644editdlrm
borland.jam99920644editdlrm
builtin.jam30370644editdlrm
bzip2.jam80660644editdlrm
cast.jam32370644editdlrm
clang-darwin.jam67130644editdlrm
clang-linux.jam99840644editdlrm
clang-vxworks.jam40260644editdlrm
clang-win.jam60940644editdlrm
clang.jam23100644editdlrm
common.jam316790644editdlrm
como-linux.jam35280644editdlrm
como-win.jam42370644editdlrm
como.jam20630644editdlrm
convert.jam19870644editdlrm
cray.jam411280644editdlrm
cw-config.jam12830644editdlrm
cw.jam95490644editdlrm
cygwin.jam4030644editdlrm
darwin.jam221650644editdlrm
diab.jam43070644editdlrm
dmc.jam60940644editdlrm
docutils.jam34440644editdlrm
doxproc.py366210644editdlrm
doxygen-config.jam3880644editdlrm
doxygen.jam247450644editdlrm
embarcadero.jam214870644editdlrm
emscripten.jam37790644editdlrm
flags.jam45700644editdlrm
fop.jam16930644editdlrm
fortran.jam19890644editdlrm
gcc.jam552880644editdlrm
generate.jam33390644editdlrm
gettext.jam76630644editdlrm
gfortran.jam10080644editdlrm
hpfortran.jam9020644editdlrm
hp_cxx.jam80890644editdlrm
ifort.jam14950644editdlrm
intel-darwin.jam97850644editdlrm
intel-linux.jam91930644editdlrm
intel-vxworks.jam70850644editdlrm
intel-win.jam163960644editdlrm
intel.jam26260644editdlrm
lex.jam5590644editdlrm
libjpeg.jam73620644editdlrm
libpng.jam71040644editdlrm
libtiff.jam72080644editdlrm
link.jam150210644editdlrm
lzma.jam32770644editdlrm
make.jam22660644editdlrm
mc.jam13110644editdlrm
message.jam16670644editdlrm
midl.jam53670644editdlrm
mipspro.jam52910644editdlrm
mpi.jam218260644editdlrm
msvc-config.jam3930644editdlrm
msvc.jam846720644editdlrm
notfile.jam16540644editdlrm
openssl.jam36130644editdlrm
package.jam92810644editdlrm
pathscale.jam66290644editdlrm
pch.jam27190644editdlrm
pgi.jam48790644editdlrm
pkg-config.jam134430644editdlrm
python-config.jam8360644editdlrm
python.jam436790644editdlrm
qcc.jam108360644editdlrm
qt.jam5300644editdlrm
qt3.jam68100644editdlrm
qt4.jam239740644editdlrm
qt5.jam265170644editdlrm
quickbook-config.jam12660644editdlrm
quickbook.jam132770644editdlrm
rc.jam53640644editdlrm
sass.jam57020644editdlrm
saxonhe.jam13290644editdlrm
stage.jam285130644editdlrm
stlport.jam118800644editdlrm
sun.jam80540644editdlrm
symlink.jam43510644editdlrm
testing-aux.jam102380644editdlrm
testing.jam278890644editdlrm
unix.jam58470644editdlrm
vacpp.jam57250644editdlrm
vmsdecc.jam201850644editdlrm
whale.jam32530644editdlrm
xlcpp.jam61210644editdlrm
xlf.jam9000644editdlrm
xsltproc-config.jam8380644editdlrm
xsltproc.jam56030644editdlrm
zlib.jam69760644editdlrm
zstd.jam24460644editdlrm
Edit: /usr/share/boost-build/src/tools/hp_cxx.jam (8089B)
# Copyright 2001 David Abrahams. # Copyright 2004, 2005 Markus Schoepflin. # Distributed under the Boost Software License, Version 1.0. # (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt) #| tag::doc[] [[bbv2.reference.tools.compiler.hp_cxx]] = HP C++ Compiler for Tru64 Unix The `hp_cxx` modules supports the http://h30097.www3.hp.com/cplus/?jumpid=reg_R1002_USEN[HP C++ Compiler] for Tru64 Unix. The module is initialized using the following syntax: ---- using hp_cxx : [version] : [c++-compile-command] : [compiler options] ; ---- This statement may be repeated several times, if you want to configure several versions of the compiler. If the command is not specified, B2 will search for a binary named `hp_cxx` in PATH. The following options can be provided, using _`option-value syntax`_: `cflags`:: Specifies additional compiler flags that will be used when compiling C sources. `cxxflags`:: Specifies additional compiler flags that will be used when compiling C++ sources. `compileflags`:: Specifies additional compiler flags that will be used when compiling both C and C++ sources. `linkflags`:: Specifies additional command line options that will be passed to the linker. |# # end::doc[] # # HP CXX compiler # See http://h30097.www3.hp.com/cplus/?jumpid=reg_R1002_USEN # # # Notes on this toolset: # # - Because of very subtle issues with the default ansi mode, strict_ansi mode # is used for compilation. One example of things that don't work correctly in # the default ansi mode is overload resolution of function templates when # mixed with non-template functions. # # - For template instantiation "-timplicit_local" is used. Previously, # "-tlocal" has been tried to avoid the need for a template repository # but this doesn't work with manually instantiated templates. "-tweak" # has not been used to avoid the stream of warning messages issued by # ar or ld when creating a library or linking an application. # # - Debug symbols are generated with "-g3", as this works both in debug and # release mode. When compiling C++ code without optimization, we additionally # use "-gall", which generates full symbol table information for all classes, # structs, and unions. As this turns off optimization, it can't be used when # optimization is needed. # import feature generators common ; import toolset : flags ; feature.extend toolset : hp_cxx ; feature.extend c++abi : cxxarm ; # Inherit from Unix toolset to get library ordering magic. toolset.inherit hp_cxx : unix ; generators.override hp_cxx.prebuilt : builtin.lib-generator ; generators.override hp_cxx.prebuilt : builtin.prebuilt ; generators.override hp_cxx.searched-lib-generator : searched-lib-generator ; rule init ( version ? : command * : options * ) { local condition = [ common.check-init-parameters hp_cxx : version $(version) ] ; local command = [ common.get-invocation-command hp_cxx : cxx : $(command) ] ; if $(command) { local root = [ common.get-absolute-tool-path $(command[-1]) ] ; if $(root) { flags hp_cxx .root $(condition) : "\"$(root)\"/" ; } } # If we can't find 'cxx' anyway, at least show 'cxx' in the commands command ?= cxx ; common.handle-options hp_cxx : $(condition) : $(command) : $(options) ; } generators.register-c-compiler hp_cxx.compile.c++ : CPP : OBJ : hp_cxx ; generators.register-c-compiler hp_cxx.compile.c : C : OBJ : hp_cxx ; # No static linking as far as I can tell. # flags cxx LINKFLAGS static : -bstatic ; flags hp_cxx.compile OPTIONS on : -g3 ; flags hp_cxx.compile OPTIONS off/on : -gall ; flags hp_cxx.link OPTIONS on : -g ; flags hp_cxx.link OPTIONS off : -s ; flags hp_cxx.compile OPTIONS off : -O0 ; flags hp_cxx.compile OPTIONS speed/on : -O2 ; flags hp_cxx.compile OPTIONS speed : -O2 ; # This (undocumented) macro needs to be defined to get all C function # overloads required by the C++ standard. flags hp_cxx.compile.c++ OPTIONS : -D__CNAME_OVERLOADS ; # Added for threading support flags hp_cxx.compile OPTIONS multi : -pthread ; flags hp_cxx.link OPTIONS multi : -pthread ; flags hp_cxx.compile OPTIONS space/on : size ; flags hp_cxx.compile OPTIONS space : -O1 ; flags hp_cxx.compile OPTIONS off : -inline none ; # The compiler versions tried (up to V6.5-040) hang when compiling Boost code # with full inlining enabled. So leave it at the default level for now. # # flags hp_cxx.compile OPTIONS full : -inline all ; flags hp_cxx.compile OPTIONS on : -pg ; flags hp_cxx.link OPTIONS on : -pg ; # Selection of the object model. This flag is needed on both the C++ compiler # and linker command line. # Unspecified ABI translates to '-model ansi' as most # standard-conforming. flags hp_cxx.compile.c++ OPTIONS : -model ansi : : hack-hack ; flags hp_cxx.compile.c++ OPTIONS cxxarm : -model arm ; flags hp_cxx.link OPTIONS : -model ansi : : hack-hack ; flags hp_cxx.link OPTIONS cxxarm : -model arm ; # Display a descriptive tag together with each compiler message. This tag can # be used by the user to explicitly suppress the compiler message. flags hp_cxx.compile OPTIONS : -msg_display_tag ; flags hp_cxx.compile OPTIONS ; flags hp_cxx.compile.c++ OPTIONS ; flags hp_cxx.compile DEFINES ; flags hp_cxx.compile INCLUDES ; flags hp_cxx.link OPTIONS ; flags hp_cxx.link LIBPATH ; flags hp_cxx.link LIBRARIES ; flags hp_cxx.link FINDLIBS-ST ; flags hp_cxx.link FINDLIBS-SA ; flags hp_cxx.compile.c++ TEMPLATE_DEPTH ; actions link bind LIBRARIES { $(CONFIG_COMMAND) -noimplicit_include $(OPTIONS) -o "$(<)" -L$(LIBPATH) "$(>)" "$(LIBRARIES)" -l$(FINDLIBS-ST) -l$(FINDLIBS-SA) -lrt -lm } # When creating dynamic libraries, we don't want to be warned about unresolved # symbols, therefore all unresolved symbols are marked as expected by # '-expect_unresolved *'. This also mirrors the behaviour of the GNU tool # chain. actions link.dll bind LIBRARIES { $(CONFIG_COMMAND) -shared -expect_unresolved \* -noimplicit_include $(OPTIONS) -o "$(<[1])" -L$(LIBPATH) "$(>)" "$(LIBRARIES)" -l$(FINDLIBS-ST) -l$(FINDLIBS-SA) -lm } # Note: Relaxed ANSI mode (-std) is used for compilation because in strict ANSI # C89 mode (-std1) the compiler doesn't accept C++ comments in C files. As -std # is the default, no special flag is needed. actions compile.c { $(.root:E=)cc -c $(OPTIONS) -D$(DEFINES) -I"$(INCLUDES)" -o "$(<)" "$(>)" } # Note: The compiler is forced to compile the files as C++ (-x cxx) because # otherwise it will silently ignore files with no file extension. # # Note: We deliberately don't suppress any warnings on the compiler command # line, the user can always do this in a customized toolset later on. rule compile.c++ { # We preprocess the TEMPLATE_DEPTH command line option here because we found # no way to do it correctly in the actual action code. There we either get # the -pending_instantiations parameter when no c++-template-depth property # has been specified or we get additional quotes around # "-pending_instantiations ". local template-depth = [ on $(1) return $(TEMPLATE_DEPTH) ] ; TEMPLATE_DEPTH on $(1) = "-pending_instantiations "$(template-depth) ; } actions compile.c++ { $(CONFIG_COMMAND) -x cxx -c -std strict_ansi -nopure_cname -noimplicit_include -timplicit_local -ptr "$(<[1]:D)/cxx_repository" $(OPTIONS) $(TEMPLATE_DEPTH) -D$(DEFINES) -I"$(INCLUDES)" -o "$(<)" "$(>)" } # Always create archive from scratch. See the gcc toolet for rationale. RM = [ common.rm-command ] ; actions together piecemeal archive { $(RM) "$(<)" ar rc $(<) $(>) }