/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/flags.jam (4570B)
# Copyright 2018 Steven Watanabe # 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) # defines the check-has-flag rule. import "class" ; import common ; import feature : feature ; import generators ; import make ; import print ; import project ; import toolset : flags ; rule init ( ) { if ! $(.initialized) { .initialized = true ; project.push-current ; project.initialize $(__name__) ; project /check/flags ; .project = [ project.current ] ; make empty.c : : @write-main ; make empty.cpp : : @write-main ; obj empty.obj : empty.cpp ; project : requirements on ; project.pop-current ; } } rule write-main ( target : : properties * ) { print.output $(target) ; print.text "int main() { return 0; }\n" : yes ; } # Applies true-properties if the toolset recognizes a specific flag. # Otherwise applies false-properties. # # Option must be one of , , or . # # Example:: # # exe foo : foo.cpp : # [ check-has-flag -std=c++11 : -std=c++11 ] ; # rule check-has-flag ( option message ? : true-properties * : false-properties * ) { init ; local id = [ MD5 $(option) ] ; if ! $(.targets.$(id)) { project.push-current $(.project) ; switch $(option:G) { case : obj flags_$(id) : empty.c : $(option) ; case : obj flags_$(id) : empty.cpp : $(option) ; case : exe flags_$(id) : empty.obj : $(option) ; case * : import errors ; errors.user-error "Don't know how to check $(option:G)" ; } project.pop-current ; .targets.$(id) = true ; } message ?= "has $(option:G=)" ; return [ check-target-builds /check/flags//flags_$(id) $(message) : $(true-properties) : $(false-properties) ] ; } IMPORT $(__name__) : check-has-flag : : check-has-flag ; feature flags.check : on : optional composite ; feature.compose on : on ; # Some compilers don't have an easy way to cause an error # for unknown options. In this case, we need to check # their stdout/stderr. This generator will copy it's # source, but will cause an error if the given pattern # matches the output from the source. # feature flags.pattern : : free ; class flag-check-generator : generator { rule __init__ ( type : requirements * : pattern ) { generator.__init__ flags.check-output : $(type) : $(type)(%_valid) : $(requirements) on ; self.pattern = $(pattern) ; } rule run ( project name ? : property-set : sources * ) { property-set = [ property-set.create [ property.change [ $(property-set).raw ] : ] $(self.pattern) ] ; return [ generator.run $(project) $(name) : $(property-set) : $(sources) ] ; } rule action-class ( ) { return non-scanning-action ; } } # These generator definitions should probably be moved to the individual toolsets. # msvc-7.1 uses 4002. Later versions use 9002. generators.register [ class.new flag-check-generator OBJ : msvc : "(D[94]002)" ] ; generators.register [ class.new flag-check-generator EXE : msvc : "(LNK4044)" ] ; generators.register [ class.new flag-check-generator OBJ : intel : "(#10006)" ] ; generators.register [ class.new flag-check-generator EXE : intel : "(#10006)" ] ; generators.override flags.check-output : all ; rule check-output-callback ( targets * : source-targets * : ignored * : output ? ) { if [ MATCH [ on $(targets) return $(PATTERN) ] : $(output) ] { FLAG_CHECK_COMMAND on $(targets) = illegal-ad22d215a8bbd73 ; } } IMPORT $(__name__) : check-output-callback : : flags.check-output-callback ; flags flags.check-output PATTERN : ; rule check-output ( targets * : sources * : properties * ) { local action = [ on $(sources) return $(.action) ] ; local all-sources ; for local t in [ $(action).targets ] { all-sources += [ $(t).actualize ] ; } REBUILDS $(targets) : $(sources) ; __ACTION_RULE__ on $(all-sources) = flags.check-output-callback $(targets) ; common.copy $(targets[1]) : $(sources[1]) ; } actions check-output { $(FLAG_CHECK_COMMAND) }