/
usr
/
share
/
boost-build
/
src
/
tools
/
/usr/share/boost-build/src/tools
mkdir
upload
Name
Size
Mode
Actions
doxygen/
-
0755
rm
features/
-
0755
rm
generators/
-
0755
rm
types/
-
0755
rm
xsltproc/
-
0755
rm
acc.jam
4800
0644
edit
dl
rm
asciidoctor.jam
6480
0644
edit
dl
rm
auto-index.jam
8324
0644
edit
dl
rm
bison.jam
589
0644
edit
dl
rm
boostbook-config.jam
389
0644
edit
dl
rm
boostbook.jam
24056
0644
edit
dl
rm
borland.jam
9992
0644
edit
dl
rm
builtin.jam
3037
0644
edit
dl
rm
bzip2.jam
8066
0644
edit
dl
rm
cast.jam
3237
0644
edit
dl
rm
clang-darwin.jam
6713
0644
edit
dl
rm
clang-linux.jam
9984
0644
edit
dl
rm
clang-vxworks.jam
4026
0644
edit
dl
rm
clang-win.jam
6094
0644
edit
dl
rm
clang.jam
2310
0644
edit
dl
rm
common.jam
31679
0644
edit
dl
rm
como-linux.jam
3528
0644
edit
dl
rm
como-win.jam
4237
0644
edit
dl
rm
como.jam
2063
0644
edit
dl
rm
convert.jam
1987
0644
edit
dl
rm
cray.jam
41128
0644
edit
dl
rm
cw-config.jam
1283
0644
edit
dl
rm
cw.jam
9549
0644
edit
dl
rm
cygwin.jam
403
0644
edit
dl
rm
darwin.jam
22165
0644
edit
dl
rm
diab.jam
4307
0644
edit
dl
rm
dmc.jam
6094
0644
edit
dl
rm
docutils.jam
3444
0644
edit
dl
rm
doxproc.py
36621
0644
edit
dl
rm
doxygen-config.jam
388
0644
edit
dl
rm
doxygen.jam
24745
0644
edit
dl
rm
embarcadero.jam
21487
0644
edit
dl
rm
emscripten.jam
3779
0644
edit
dl
rm
flags.jam
4570
0644
edit
dl
rm
fop.jam
1693
0644
edit
dl
rm
fortran.jam
1989
0644
edit
dl
rm
gcc.jam
55288
0644
edit
dl
rm
generate.jam
3339
0644
edit
dl
rm
gettext.jam
7663
0644
edit
dl
rm
gfortran.jam
1008
0644
edit
dl
rm
hpfortran.jam
902
0644
edit
dl
rm
hp_cxx.jam
8089
0644
edit
dl
rm
ifort.jam
1495
0644
edit
dl
rm
intel-darwin.jam
9785
0644
edit
dl
rm
intel-linux.jam
9193
0644
edit
dl
rm
intel-vxworks.jam
7085
0644
edit
dl
rm
intel-win.jam
16396
0644
edit
dl
rm
intel.jam
2626
0644
edit
dl
rm
lex.jam
559
0644
edit
dl
rm
libjpeg.jam
7362
0644
edit
dl
rm
libpng.jam
7104
0644
edit
dl
rm
libtiff.jam
7208
0644
edit
dl
rm
link.jam
15021
0644
edit
dl
rm
lzma.jam
3277
0644
edit
dl
rm
make.jam
2266
0644
edit
dl
rm
mc.jam
1311
0644
edit
dl
rm
message.jam
1667
0644
edit
dl
rm
midl.jam
5367
0644
edit
dl
rm
mipspro.jam
5291
0644
edit
dl
rm
mpi.jam
21826
0644
edit
dl
rm
msvc-config.jam
393
0644
edit
dl
rm
msvc.jam
84672
0644
edit
dl
rm
notfile.jam
1654
0644
edit
dl
rm
openssl.jam
3613
0644
edit
dl
rm
package.jam
9281
0644
edit
dl
rm
pathscale.jam
6629
0644
edit
dl
rm
pch.jam
2719
0644
edit
dl
rm
pgi.jam
4879
0644
edit
dl
rm
pkg-config.jam
13443
0644
edit
dl
rm
python-config.jam
836
0644
edit
dl
rm
python.jam
43679
0644
edit
dl
rm
qcc.jam
10836
0644
edit
dl
rm
qt.jam
530
0644
edit
dl
rm
qt3.jam
6810
0644
edit
dl
rm
qt4.jam
23974
0644
edit
dl
rm
qt5.jam
26517
0644
edit
dl
rm
quickbook-config.jam
1266
0644
edit
dl
rm
quickbook.jam
13277
0644
edit
dl
rm
rc.jam
5364
0644
edit
dl
rm
sass.jam
5702
0644
edit
dl
rm
saxonhe.jam
1329
0644
edit
dl
rm
stage.jam
28513
0644
edit
dl
rm
stlport.jam
11880
0644
edit
dl
rm
sun.jam
8054
0644
edit
dl
rm
symlink.jam
4351
0644
edit
dl
rm
testing-aux.jam
10238
0644
edit
dl
rm
testing.jam
27889
0644
edit
dl
rm
unix.jam
5847
0644
edit
dl
rm
vacpp.jam
5725
0644
edit
dl
rm
vmsdecc.jam
20185
0644
edit
dl
rm
whale.jam
3253
0644
edit
dl
rm
xlcpp.jam
6121
0644
edit
dl
rm
xlf.jam
900
0644
edit
dl
rm
xsltproc-config.jam
838
0644
edit
dl
rm
xsltproc.jam
5603
0644
edit
dl
rm
zlib.jam
6976
0644
edit
dl
rm
zstd.jam
2446
0644
edit
dl
rm
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-name>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 : <toolset>hp_cxx ; generators.register-c-compiler hp_cxx.compile.c : C : OBJ : <toolset>hp_cxx ; # No static linking as far as I can tell. # flags cxx LINKFLAGS <runtime-link>static : -bstatic ; flags hp_cxx.compile OPTIONS <debug-symbols>on : -g3 ; flags hp_cxx.compile OPTIONS <optimization>off/<debug-symbols>on : -gall ; flags hp_cxx.link OPTIONS <debug-symbols>on : -g ; flags hp_cxx.link OPTIONS <debug-symbols>off : -s ; flags hp_cxx.compile OPTIONS <optimization>off : -O0 ; flags hp_cxx.compile OPTIONS <optimization>speed/<inlining>on : -O2 ; flags hp_cxx.compile OPTIONS <optimization>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 <threading>multi : -pthread ; flags hp_cxx.link OPTIONS <threading>multi : -pthread ; flags hp_cxx.compile OPTIONS <optimization>space/<inlining>on : <inlining>size ; flags hp_cxx.compile OPTIONS <optimization>space : -O1 ; flags hp_cxx.compile OPTIONS <inlining>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 <inlining>full : -inline all ; flags hp_cxx.compile OPTIONS <profiling>on : -pg ; flags hp_cxx.link OPTIONS <profiling>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 <c++abi> : -model ansi : : hack-hack ; flags hp_cxx.compile.c++ OPTIONS <c++abi>cxxarm : -model arm ; flags hp_cxx.link OPTIONS <c++abi> : -model ansi : : hack-hack ; flags hp_cxx.link OPTIONS <c++abi>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 <cflags> ; flags hp_cxx.compile.c++ OPTIONS <cxxflags> ; flags hp_cxx.compile DEFINES <define> ; flags hp_cxx.compile INCLUDES <include> ; flags hp_cxx.link OPTIONS <linkflags> ; flags hp_cxx.link LIBPATH <library-path> ; flags hp_cxx.link LIBRARIES <library-file> ; flags hp_cxx.link FINDLIBS-ST <find-static-library> ; flags hp_cxx.link FINDLIBS-SA <find-shared-library> ; flags hp_cxx.compile.c++ TEMPLATE_DEPTH <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 $(<) $(>) }
Save
cmd:
run