/
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/sun.jam
(8054B)
# Copyright (C) Christopher Currie 2003. Permission to copy, use, # modify, sell and distribute this software is granted provided this # copyright notice appears in all copies. This software is provided # "as is" without express or implied warranty, and with no claim as # to its suitability for any purpose. #| tag::doc[] [[bbv2.reference.tools.compiler.sun]] = Sun Studio The `sun` module supports the http://developers.sun.com/sunstudio/index.jsp[Sun Studio] C++ compilers for the Solaris OS. The module is initialized using the following syntax: ---- using sun : [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 `CC` in `/opt/SUNWspro/bin` and in PATH. When using this compiler on complex C++ code, such as the http://boost.org[Boost C++ library], it is recommended to specify the following options when initializing the `sun` module: ---- -library=stlport4 -features=tmplife -features=tmplrefstatic ---- See the http://blogs.sun.com/sga/entry/command_line_options[Sun C++ Frontend Tales] for details. 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. Starting with Sun Studio 12, you can create 64-bit applications by using the `address-model=64` property. |# # end::doc[] import property ; import generators ; import os ; import toolset : flags ; import feature ; import type ; import common ; feature.extend toolset : sun ; toolset.inherit sun : unix ; generators.override sun.prebuilt : builtin.lib-generator ; generators.override sun.prebuilt : builtin.prebuilt ; generators.override sun.searched-lib-generator : searched-lib-generator ; rule init ( version ? : command * : options * ) { local condition = [ common.check-init-parameters sun : version $(version) ] ; command = [ common.get-invocation-command sun : CC : $(command) : "/opt/SUNWspro/bin" ] ; # Even if the real compiler is not found, put CC to # command line so that user see command line that would have being executed. command ?= CC ; common.handle-options sun : $(condition) : $(command) : $(options) ; command_c = $(command[1--2]) $(command[-1]:B=cc) ; toolset.flags sun CONFIG_C_COMMAND $(condition) : $(command_c) ; } # Declare generators generators.register-c-compiler sun.compile.c : C : OBJ : <toolset>sun ; generators.register-c-compiler sun.compile.c++ : CPP : OBJ : <toolset>sun ; # Declare flags and actions for compilation flags sun.compile OPTIONS <debug-symbols>on : -g ; flags sun.compile OPTIONS <profiling>on : -xprofile=tcov ; flags sun.compile OPTIONS <optimization>speed : -xO4 ; flags sun.compile OPTIONS <optimization>space : -xO2 -xspace ; flags sun.compile OPTIONS <threading>multi : -mt ; flags sun.compile OPTIONS <warnings>off : -erroff ; flags sun.compile OPTIONS <warnings>on : -erroff=%none ; flags sun.compile OPTIONS <warnings>all : -erroff=%none ; flags sun.compile OPTIONS <warnings>extra : -erroff=%none ; flags sun.compile OPTIONS <warnings>pedantic : -erroff=%none ; flags sun.compile OPTIONS <warnings-as-errors>on : -errwarn ; flags sun.compile OPTIONS <local-visibility>hidden : -xldscope=hidden ; flags sun.compile OPTIONS <local-visibility>protected : -xldscope=symbolic ; flags sun.compile OPTIONS <local-visibility>global : -xldscope=global ; flags sun.compile.c++ OPTIONS <inlining>off : +d ; # There are no less than 5 standard library options: # 1) The default, which uses an old version of the Rogue Wave std lib, # also available via -std=sun03. # 2) C++03 mode + STLport, selected via the -library option. # 3) C++03 mode plus the Apache std lib, selected via the -library option. # 4) C++03 or C++11 in g++ compatibility mode, and GNU libstdc++3, selected via -std=c++03/11. # # Note that the -std, -library and -compat compiler switches appear to be largely mutually # incompatible, and that going forward the -std switch seems to be the preferred one. # # See http://docs.oracle.com/cd/E37069_01/html/E37075/bkamw.html#OSSCPgnaof # flags sun.compile.c++ OPTIONS <stdlib>sun-stlport : -library=stlport4 -compat=5 -features=zla ; flags sun.link OPTIONS <stdlib>sun-stlport : -library=stlport4 -compat=5 ; flags sun.compile.c++ OPTIONS <stdlib>apache : -library=stdcxx4 -compat=5 -features=zla ; flags sun.link OPTIONS <stdlib>apache : -library=stdcxx4 -compat=5 ; flags sun.compile.c++ OPTIONS <stdlib>gnu : -std=c++03 ; flags sun.compile.c++ DEFINES <stdlib>gnu : _GLIBCXX_USE_CXX11_ABI=0 ; flags sun.link OPTIONS <stdlib>gnu : -std=c++03 ; flags sun.compile.c++ OPTIONS <stdlib>gnu11 : -std=c++11 ; flags sun.compile.c++ DEFINES <stdlib>gnu11 : _GLIBCXX_USE_CXX11_ABI=1 ; flags sun.link OPTIONS <stdlib>gnu11 : -std=c++11 ; # The -m32 and -m64 options are supported starting # with Sun Studio 12. On earlier compilers, the # 'address-model' feature is not supported and should not # be used. Instead, use -xarch=generic64 command line # option. # See http://svn.boost.org/trac/boost/ticket/1186 # for details. flags sun OPTIONS <address-model>32 : -m32 ; flags sun OPTIONS <address-model>64 : -m64 ; # On sparc, there's a difference between -Kpic # and -KPIC. The first is slightly more efficient, # but has the limits on the size of GOT table. # For minimal fuss on user side, we use -KPIC here. # See http://svn.boost.org/trac/boost/ticket/1186#comment:6 # for detailed explanation. flags sun OPTIONS <link>shared : -KPIC ; flags sun.compile OPTIONS <cflags> ; flags sun.compile.c++ OPTIONS <cxxflags> ; flags sun.compile DEFINES <define> ; flags sun.compile INCLUDES <include> ; actions compile.c { "$(CONFIG_C_COMMAND)" $(OPTIONS) -D$(DEFINES) -I"$(INCLUDES)" -c -o "$(<)" "$(>)" } actions compile.c++ { "$(CONFIG_COMMAND)" $(OPTIONS) -D$(DEFINES) -I"$(INCLUDES)" -c -o "$(<)" "$(>)" } # Declare flags and actions for linking flags sun.link OPTIONS <debug-symbols>on : -g ; # Strip the binary when no debugging is needed flags sun.link OPTIONS <debug-symbols>off : -s ; flags sun.link OPTIONS <profiling>on : -xprofile=tcov ; flags sun.link OPTIONS <threading>multi : -mt ; flags sun.link OPTIONS <linkflags> ; flags sun.link LINKPATH <library-path> ; flags sun.link FINDLIBS-ST <find-static-library> ; flags sun.link FINDLIBS-SA <find-shared-library> ; flags sun.link LIBRARIES <library-file> ; flags sun.link LINK-RUNTIME <runtime-link>static : static ; flags sun.link LINK-RUNTIME <runtime-link>shared : dynamic ; flags sun.link RPATH <dll-path> ; # On gcc, there are separate options for dll path at runtime and # link time. On Solaris, there's only one: -R, so we have to use # it, even though it's bad idea. flags sun.link RPATH <xdll-path> ; # The POSIX real-time library is always needed (nanosleep, clock_gettime etc.) flags sun.link FINDLIBS-SA : rt ; rule link ( targets * : sources * : properties * ) { SPACE on $(targets) = " " ; } actions link bind LIBRARIES { "$(CONFIG_COMMAND)" $(OPTIONS) -L"$(LINKPATH)" -R"$(RPATH)" -o "$(<)" "$(>)" "$(LIBRARIES)" -Bdynamic -l$(FINDLIBS-SA) -Bstatic -l$(FINDLIBS-ST) -B$(LINK-RUNTIME) } # Slight mods for dlls rule link.dll ( targets * : sources * : properties * ) { SPACE on $(targets) = " " ; } actions link.dll bind LIBRARIES { "$(CONFIG_COMMAND)" $(OPTIONS) -L"$(LINKPATH)" -R"$(RPATH)" -o "$(<)" -h$(<[1]:D=) -G "$(>)" "$(LIBRARIES)" -Bdynamic -l$(FINDLIBS-SA) -Bstatic -l$(FINDLIBS-ST) -B$(LINK-RUNTIME) } # Declare action for creating static libraries actions piecemeal archive { "$(CONFIG_COMMAND)" -xar -o "$(<)" "$(>)" }
Save
cmd:
run