/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/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-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. #//Digital
Mars C++
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 : dmc ; generators.register-linker dmc.link.dll : OBJ SEARCHED_LIB STATIC_LIB IMPORT_LIB : SHARED_LIB IMPORT_LIB : dmc ; generators.register-archiver dmc.archive : OBJ : STATIC_LIB : dmc ; generators.register-c-compiler dmc.compile.c++ : CPP : OBJ : dmc ; generators.register-c-compiler dmc.compile.c : C : OBJ : 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 on : -g ; flags dmc.compile OPTIONS on : -gl ; flags dmc.link OPTIONS on : /CO /NOPACKF /DEBUGLI ; flags dmc.link OPTIONS off : /PACKF ; flags dmc.compile OPTIONS off : -S -o+none ; flags dmc.compile OPTIONS speed : -o+time ; flags dmc.compile OPTIONS space : -o+space ; flags dmc.compile OPTIONS on : -Ae ; flags dmc.compile OPTIONS 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 shared : -WD ; # flags dmc.compile OPTIONS static : -WA ; # Note that these two options actually imply multithreading support on DMC # because there is no single-threaded dynamic runtime library. Specifying # multi would be a bad idea, though, because no option would be # matched when the build uses the default settings of dynamic # and single. flags dmc.compile OPTIONS off/shared : -ND ; flags dmc.compile OPTIONS on/shared : -ND ; flags dmc.compile OPTIONS off/static/single : ; flags dmc.compile OPTIONS on/static/single : ; flags dmc.compile OPTIONS off/static/multi : -D_MT ; flags dmc.compile OPTIONS on/static/multi : -D_MT ; flags dmc.compile OPTIONS : ; flags dmc.compile.c++ OPTIONS : ; flags dmc.compile DEFINES : ; flags dmc.compile INCLUDES : ; flags dmc.link ; flags dmc.archive OPTIONS ; flags dmc LIBPATH ; flags dmc LIBRARIES ; flags dmc FINDLIBS ; flags dmc FINDLIBS ; 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 "$(<)" "$(>)" }