/
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/dmc.jam
(6094B)
# Digital Mars C++ # (C) Copyright Christof Meerwald 2003. # (C) Copyright Aleksey Gurtovoy 2004. # (C) Copyright Arjan Knepper 2006. # # Distributed under the Boost Software License, Version 1.0. (See # accompanying file LICENSE_1_0.txt or copy at # http://www.boost.org/LICENSE_1_0.txt) #| tag::doc[] [[bbv2.reference.tools.compiler.dmc]] = Digital Mars C/C++ Compiler The `dmc` module supports the http://www.digitalmars.com/[Digital Mars C++ compiler.] The module is initialized using the following syntax: ---- using dmc : [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 `dmc` 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[] # The following #// line will be used by the regression test table generation # program as the column heading for HTML tables. Must not include version number. #//<a href="http://www.digitalmars.com/">Digital<br>Mars C++</a> import feature generators common ; import toolset : flags ; import sequence regex ; feature.extend toolset : dmc ; rule init ( version ? : command * : options * ) { local condition = [ common.check-init-parameters dmc : version $(version) ] ; local command = [ common.get-invocation-command dmc : dmc : $(command) ] ; command ?= dmc ; common.handle-options dmc : $(condition) : $(command) : $(options) ; if $(command) { command = [ common.get-absolute-tool-path $(command[-1]) ] ; } root = $(command:D) ; if $(root) { # DMC linker is sensitive the the direction of slashes, and # won't link if forward slashes are used in command. root = [ sequence.join [ regex.split $(root) "/" ] : "\\" ] ; flags dmc .root $(condition) : $(root)\\bin\\ ; } else { flags dmc .root $(condition) : "" ; } } # Declare generators generators.register-linker dmc.link : OBJ SEARCHED_LIB STATIC_LIB IMPORT_LIB : EXE : <toolset>dmc ; generators.register-linker dmc.link.dll : OBJ SEARCHED_LIB STATIC_LIB IMPORT_LIB : SHARED_LIB IMPORT_LIB : <toolset>dmc ; generators.register-archiver dmc.archive : OBJ : STATIC_LIB : <toolset>dmc ; generators.register-c-compiler dmc.compile.c++ : CPP : OBJ : <toolset>dmc ; generators.register-c-compiler dmc.compile.c : C : OBJ : <toolset>dmc ; # Declare flags # dmc optlink has some limitation on the amount of debug-info included. Therefore only linenumbers are enabled in debug builds. # flags dmc.compile OPTIONS <debug-symbols>on : -g ; flags dmc.compile OPTIONS <debug-symbols>on : -gl ; flags dmc.link OPTIONS <debug-symbols>on : /CO /NOPACKF /DEBUGLI ; flags dmc.link OPTIONS <debug-symbols>off : /PACKF ; flags dmc.compile OPTIONS <optimization>off : -S -o+none ; flags dmc.compile OPTIONS <optimization>speed : -o+time ; flags dmc.compile OPTIONS <optimization>space : -o+space ; flags dmc.compile OPTIONS <exception-handling>on : -Ae ; flags dmc.compile OPTIONS <rtti>on : -Ar ; # FIXME: # Compiling sources to be linked into a shared lib (dll) the -WD cflag should be used # Compiling sources to be linked into a static lib (lib) or executable the -WA cflag should be used # But for some reason the -WD cflag is always in use. # flags dmc.compile OPTIONS <link>shared : -WD ; # flags dmc.compile OPTIONS <link>static : -WA ; # Note that these two options actually imply multithreading support on DMC # because there is no single-threaded dynamic runtime library. Specifying # <threading>multi would be a bad idea, though, because no option would be # matched when the build uses the default settings of <runtime-link>dynamic # and <threading>single. flags dmc.compile OPTIONS <runtime-debugging>off/<runtime-link>shared : -ND ; flags dmc.compile OPTIONS <runtime-debugging>on/<runtime-link>shared : -ND ; flags dmc.compile OPTIONS <runtime-debugging>off/<runtime-link>static/<threading>single : ; flags dmc.compile OPTIONS <runtime-debugging>on/<runtime-link>static/<threading>single : ; flags dmc.compile OPTIONS <runtime-debugging>off/<runtime-link>static/<threading>multi : -D_MT ; flags dmc.compile OPTIONS <runtime-debugging>on/<runtime-link>static/<threading>multi : -D_MT ; flags dmc.compile OPTIONS : <cflags> ; flags dmc.compile.c++ OPTIONS : <cxxflags> ; flags dmc.compile DEFINES : <define> ; flags dmc.compile INCLUDES : <include> ; flags dmc.link <linkflags> ; flags dmc.archive OPTIONS <arflags> ; flags dmc LIBPATH <library-path> ; flags dmc LIBRARIES <library-file> ; flags dmc FINDLIBS <find-library-sa> ; flags dmc FINDLIBS <find-library-st> ; actions together link bind LIBRARIES { "$(.root)link" $(OPTIONS) /NOI /DE /XN "$(>)" , "$(<[1])" ,, $(LIBRARIES) user32.lib kernel32.lib "$(FINDLIBS:S=.lib)" , "$(<[2]:B).def" } actions together link.dll bind LIBRARIES { echo LIBRARY "$(<[1])" > $(<[2]:B).def echo DESCRIPTION 'A Library' >> $(<[2]:B).def echo EXETYPE NT >> $(<[2]:B).def echo SUBSYSTEM WINDOWS >> $(<[2]:B).def echo CODE EXECUTE READ >> $(<[2]:B).def echo DATA READ WRITE >> $(<[2]:B).def "$(.root)link" $(OPTIONS) /NOI /DE /XN /ENTRY:_DllMainCRTStartup /IMPLIB:"$(<[2])" "$(>)" $(LIBRARIES) , "$(<[1])" ,, user32.lib kernel32.lib "$(FINDLIBS:S=.lib)" , "$(<[2]:B).def" } actions compile.c { "$(.root)dmc" -c $(OPTIONS) -D$(DEFINES) -I"$(INCLUDES)" -o"$(<)" "$(>)" } actions compile.c++ { "$(.root)dmc" -cpp -c -Ab $(OPTIONS) -D$(DEFINES) -I"$(INCLUDES)" -o"$(<)" "$(>)" } actions together piecemeal archive { "$(.root)lib" $(OPTIONS) -c -n -p256 "$(<)" "$(>)" }
Save
cmd:
run