/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/clang-darwin.jam (6713B)
# Copyright Vladimir Prus 2004. # Copyright Noel Belcourt 2007. # 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) import clang ; import feature : feature ; import os ; import toolset ; import toolset : flags ; import gcc ; import common ; import errors ; import generators ; feature.extend-subfeature toolset clang : platform : darwin ; toolset.inherit-generators clang-darwin clang darwin : gcc # Don't inherit PCH generators. They were not tested, and probably # don't work for this compiler. : gcc.mingw.link gcc.mingw.link.dll gcc.compile.c.pch gcc.compile.c++.pch ; generators.override clang-darwin.prebuilt : builtin.lib-generator ; generators.override clang-darwin.prebuilt : builtin.prebuilt ; generators.override clang-darwin.searched-lib-generator : searched-lib-generator ; generators.register-c-compiler clang-darwin.compile.m : OBJECTIVE_C : OBJ : clang darwin ; generators.register-c-compiler clang-darwin.compile.mm : OBJECTIVE_CPP : OBJ : clang darwin ; toolset.inherit-rules clang-darwin : gcc ; toolset.inherit-flags clang-darwin : gcc : full x86/32 x86/64 on/full on/fat ; if [ MATCH (--debug-configuration) : [ modules.peek : ARGV ] ] { .debug-configuration = true ; } # Initializes the clang-darwin toolset # version in optional # name (default clang++) is used to invoke the specified clang compiler # compile and link options allow you to specify addition command line options for each version rule init ( version ? : command * : options * ) { command = [ common.get-invocation-command clang-darwin : clang++ : $(command) : /usr/bin /usr/local/bin ] ; # Determine the version local command-string = $(command:J=" ") ; if $(command) { version ?= [ MATCH "version ([0-9]+[.][0-9]+)" : [ SHELL "$(command-string) --version" ] ] ; } local condition = [ common.check-init-parameters clang : version $(version) ] ; common.handle-options clang-darwin : $(condition) : $(command) : $(options) ; clang.init-cxxstd-flags clang-darwin : $(condition) : $(version) ; # - Ranlib. local ranlib = [ feature.get-values : $(options) ] ; toolset.flags clang-darwin.archive .RANLIB $(condition) : $(ranlib[1]) ; # - Archive builder. local archiver = [ feature.get-values : $(options) ] ; toolset.flags clang-darwin.archive .AR $(condition) : $(archiver[1]) ; } SPACE = " " ; toolset.flags clang-darwin.compile.m OPTIONS ; toolset.flags clang-darwin.compile.mm OPTIONS ; toolset.flags clang-darwin.compile.mm OPTIONS ; # Declare flags and action for compilation. # For clang, 'on' and 'full' are identical toolset.flags clang-darwin.compile OPTIONS full : -Wno-inline ; # SJW 12/2017: Support for is widely inconsistent. # shouldn't this be handled by the common gcc? toolset.flags clang-darwin.compile OPTIONS ; # LTO toolset.flags clang-darwin.compile OPTIONS on/thin : -flto=thin ; toolset.flags clang-darwin.link OPTIONS on/thin : -flto=thin ; toolset.flags clang-darwin.compile OPTIONS on/full : -flto=full ; toolset.flags clang-darwin.link OPTIONS on/full : -flto=full ; # stdlib selection toolset.flags clang-darwin.compile OPTIONS gnu gnu11 : -stdlib=libstdc++ ; toolset.flags clang-darwin.link OPTIONS gnu gnu11 : -stdlib=libstdc++ ; toolset.flags clang-darwin.compile OPTIONS libc++ : -stdlib=libc++ ; toolset.flags clang-darwin.link OPTIONS libc++ : -stdlib=libc++ ; actions compile.c { "$(CONFIG_COMMAND)" -x c $(OPTIONS) $(USER_OPTIONS) -D$(DEFINES) -I"$(INCLUDES)" -c -o "$(<)" "$(>)" } actions compile.c++ { "$(CONFIG_COMMAND)" -x c++ $(OPTIONS) $(USER_OPTIONS) -D$(DEFINES) -I"$(INCLUDES)" -c -o "$(<)" "$(>)" } actions compile.m { "$(CONFIG_COMMAND)" -x objective-c $(OPTIONS) -D$(DEFINES) -I"$(INCLUDES)" -c -o "$(<)" "$(>)" } actions compile.mm { "$(CONFIG_COMMAND)" -x objective-c++ $(OPTIONS) -D$(DEFINES) -I"$(INCLUDES)" -c -o "$(<)" "$(>)" } # Default value. Mostly for the sake of clang-linux # that inherits from gcc, but does not has the same # logic to set the .AR variable. We can put the same # logic in clang-linux, but that's hardly worth the trouble # as on Linux, 'ar' is always available. .AR = ar ; .RANLIB = ranlib -cs ; rule archive ( targets * : sources * : properties * ) { # Always remove archive and start again. Here's rationale from # Andre Hentz: # # I had a file, say a1.c, that was included into liba.a. # I moved a1.c to a2.c, updated my Jamfiles and rebuilt. # My program was crashing with absurd errors. # After some debugging I traced it back to the fact that a1.o was *still* # in liba.a # # Rene Rivera: # # Originally removing the archive was done by splicing an RM # onto the archive action. That makes archives fail to build on NT # when they have many files because it will no longer execute the # action directly and blow the line length limit. Instead we # remove the file in a different action, just before the building # of the archive. # local clean.a = $(targets[1])(clean) ; TEMPORARY $(clean.a) ; NOCARE $(clean.a) ; LOCATE on $(clean.a) = [ on $(targets[1]) return $(LOCATE) ] ; DEPENDS $(clean.a) : $(sources) ; DEPENDS $(targets) : $(clean.a) ; common.RmTemps $(clean.a) : $(targets) ; } actions piecemeal archive { "$(.AR)" $(AROPTIONS) rc "$(<)" "$(>)" "$(.RANLIB)" "$(<)" } # Declare actions for linking rule link ( targets * : sources * : properties * ) { SPACE on $(targets) = " " ; # Serialize execution of the 'link' action, since # running N links in parallel is just slower. JAM_SEMAPHORE on $(targets) = clang-darwin-link-semaphore ; } actions link bind LIBRARIES { "$(CONFIG_COMMAND)" $(USER_OPTIONS) -L"$(LINKPATH)" -o "$(<)" "$(>)" "$(LIBRARIES)" $(START-GROUP) $(FINDLIBS-ST-PFX) -l$(FINDLIBS-ST) $(FINDLIBS-SA-PFX) -l$(FINDLIBS-SA) $(END-GROUP) $(OPTIONS) } actions link.dll bind LIBRARIES { "$(CONFIG_COMMAND)" $(USER_OPTIONS) -L"$(LINKPATH)" -o "$(<)" -single_module -dynamiclib -install_name "@rpath/$(<[1]:D=)" "$(>)" "$(LIBRARIES)" $(START-GROUP) $(FINDLIBS-ST-PFX) -l$(FINDLIBS-ST) $(FINDLIBS-SA-PFX) -l$(FINDLIBS-SA) $(END-GROUP) $(OPTIONS) }