/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-linux.jam (9984B)
# Copyright 2020 Rene Rivera # Copyright (c) 2003 Michael Stevens # Copyright (c) 2010-2011 Bryce Lelbach (blelbach@cct.lsu.edu, maintainer) # # Use, modification and distribution is subject to the Boost Software # License Version 1.0. (See accompanying file LICENSE_1_0.txt or # http://www.boost.org/LICENSE_1_0.txt) import common ; import toolset ; import feature ; import toolset : flags ; import clang ; import gcc ; import common ; import errors ; import generators ; import type ; import numbers ; import os ; import property ; feature.extend-subfeature toolset clang : platform : linux ; toolset.inherit-generators clang-linux clang linux : gcc : gcc.mingw.link gcc.mingw.link.dll gcc.cygwin.link gcc.cygwin.link.dll ; generators.override clang-linux.prebuilt : builtin.lib-generator ; generators.override clang-linux.prebuilt : builtin.prebuilt ; generators.override clang-linux.searched-lib-generator : searched-lib-generator ; # Override default do-nothing generators. generators.override clang-linux.compile.c.pch : pch.default-c-pch-generator ; generators.override clang-linux.compile.c++.pch : pch.default-cpp-pch-generator ; type.set-generated-target-suffix PCH : clang linux : pth ; toolset.inherit-rules clang-linux : gcc ; toolset.inherit-flags clang-linux : gcc : full multi/windows on/full on/fat ; if [ MATCH (--debug-configuration) : [ modules.peek : ARGV ] ] { .debug-configuration = true ; } rule init ( version ? : command * : options * ) { command = [ common.get-invocation-command clang-linux : clang++ : $(command) ] ; # Determine the version if $(command) { local command-string = \"$(command)\" ; command-string = $(command-string:J=" ") ; version ?= [ MATCH "version ([0-9.]+)" : [ SHELL "$(command-string) --version" ] ] ; } local condition = [ common.check-init-parameters clang-linux : version $(version) ] ; common.handle-options clang-linux : $(condition) : $(command) : $(options) ; clang.init-cxxstd-flags clang-linux : $(condition) : $(version) ; # Support for gcc root as the backend, this is mainly useful for clang/gcc on Windows # since on Linux gcc will be the default compiler already located on the PATH. # On Windows it is possible to have multiple versions of mingw(-64)/gcc installed # in different directories. The option can be given so that the gcc backend # can be found at runtime, while the $(command) can be a script that sets the # PATH for both the clang directory and the backende gcc directory # before calling clang++ when compiling/linking. local root = [ feature.get-values : $(options) ] ; if $(root) { # On multilib 64-bit boxes, there are both 32-bit and 64-bit libraries # and all must be added to LD_LIBRARY_PATH. The linker will pick the # right onces. Note that we do not provide a clean way to build a 32-bit # binary using a 64-bit compiler, but user can always pass -m32 # manually. local lib_path = $(root)/bin $(root)/lib $(root)/lib32 $(root)/lib64 ; if $(.debug-configuration) { ECHO "notice:" using gcc libraries with clang"::" $(condition) "::" $(lib_path) ; } toolset.flags clang-linux.link RUN_PATH $(condition) : $(lib_path) ; } # - Ranlib. local ranlib = [ feature.get-values : $(options) ] ; if ( ! $(ranlib) ) && $(root) { ranlib = $(root)/bin/ranlib ; } toolset.flags clang-linux.archive .RANLIB $(condition) : $(ranlib[1]) ; # - Archive builder. local archiver = [ feature.get-values : $(options) ] ; if ( ! $(archiver) ) && $(root) { archiver = $(root)/bin/ar ; } toolset.flags clang-linux.archive .AR $(condition) : $(archiver[1]) ; } ############################################################################### # Flags # note: clang silently ignores some of these inlining options # For clang, 'on' and 'full' are identical. toolset.flags clang-linux.compile OPTIONS full : -Wno-inline ; toolset.flags clang-linux.compile OPTIONS multi/windows : -pthread ; toolset.flags clang-linux.link OPTIONS multi/windows : -pthread ; # LTO toolset.flags clang-linux.compile OPTIONS on/thin : -flto=thin ; toolset.flags clang-linux.link OPTIONS on/thin : -flto=thin ; toolset.flags clang-linux.compile OPTIONS on/full : -flto=full ; toolset.flags clang-linux.link OPTIONS on/full : -flto=full ; # stdlib selection toolset.flags clang-linux.compile OPTIONS gnu gnu11 : -stdlib=libstdc++ ; toolset.flags clang-linux.link OPTIONS gnu gnu11 : -stdlib=libstdc++ ; toolset.flags clang-linux.compile OPTIONS libc++ : -stdlib=libc++ ; toolset.flags clang-linux.link OPTIONS libc++ : -stdlib=libc++ ; ############################################################################### # C and C++ compilation rule compile.c++ ( targets * : sources * : properties * ) { local pch-file = [ on $(<) return $(PCH_FILE) ] ; if $(pch-file) { DEPENDS $(<) : $(pch-file) ; clang-linux.compile.c++.with-pch $(targets) : $(sources) ; } else { clang-linux.compile.c++.without-pch $(targets) : $(sources) ; } } actions compile.c++.without-pch { "$(CONFIG_COMMAND)" -c -x c++ $(OPTIONS) $(USER_OPTIONS) -D$(DEFINES) -I"$(INCLUDES)" -include"$(FORCE_INCLUDES)" -o "$(<)" "$(>)" } actions compile.c++.with-pch bind PCH_FILE { "$(CONFIG_COMMAND)" -c -x c++ $(OPTIONS) $(USER_OPTIONS) -D$(DEFINES) -I"$(INCLUDES)" -Xclang -include-pch -Xclang "$(PCH_FILE)" -include"$(FORCE_INCLUDES)" -o "$(<)" "$(>)" } rule compile.c ( targets * : sources * : properties * ) { local pch-file = [ on $(<) return $(PCH_FILE) ] ; if $(pch-file) { DEPENDS $(<) : $(pch-file) ; clang-linux.compile.c.with-pch $(targets) : $(sources) ; } else { clang-linux.compile.c.without-pch $(targets) : $(sources) ; } } actions compile.c.without-pch { "$(CONFIG_COMMAND)" -c -x c $(OPTIONS) $(USER_OPTIONS) -D$(DEFINES) -I"$(INCLUDES)" -include"$(FORCE_INCLUDES)" -c -o "$(<)" "$(>)" } actions compile.c.with-pch bind PCH_FILE { "$(CONFIG_COMMAND)" -c -x c $(OPTIONS) $(USER_OPTIONS) -D$(DEFINES) -I"$(INCLUDES)" -Xclang -include-pch -Xclang "$(PCH_FILE)" -include"$(FORCE_INCLUDES)" -c -o "$(<)" "$(>)" } ############################################################################### # PCH emission RM = [ common.rm-command ] ; rule compile.c++.pch ( targets * : sources * : properties * ) { } actions compile.c++.pch { $(RM) -f "$(<)" && "$(CONFIG_COMMAND)" -c -x c++-header $(OPTIONS) $(USER_OPTIONS) -D$(DEFINES) -I"$(INCLUDES)" -include"$(FORCE_INCLUDES)" -Xclang -emit-pch -o "$(<)" "$(>)" } rule compile.c.pch ( targets * : sources * : properties * ) { } actions compile.c.pch { $(RM) -f "$(<)" && "$(CONFIG_COMMAND)" -c -x c-header $(OPTIONS) $(USER_OPTIONS) -D$(DEFINES) -I"$(INCLUDES)" -include"$(FORCE_INCLUDES)" -Xclang -emit-pch -o "$(<)" "$(>)" } ############################################################################### # Linking SPACE = " " ; rule link ( targets * : sources * : properties * ) { SPACE on $(targets) = " " ; JAM_SEMAPHORE on $(targets) = clang-linux-link-semaphore ; local tosw ; local pselect = [ property.select : $(properties) ] ; if $(pselect) { local tosv = [ feature.get-values : $(pselect) ] ; if $(tosv) = windows { tosw = 1 ; } } else if [ os.name ] in NT { tosw = 1 ; } if $(tosw) { link-w $(targets) : $(sources) ; } else { link-o $(targets) : $(sources) ; } } rule link.dll ( targets * : sources * : properties * ) { SPACE on $(targets) = " " ; JAM_SEMAPHORE on $(targets) = clang-linux-link-semaphore ; local tosw ; local pselect = [ property.select : $(properties) ] ; if $(pselect) { local tosv = [ feature.get-values : $(pselect) ] ; if $(tosv) = windows { tosw = 1 ; } } else if [ os.name ] in NT { tosw = 1 ; } if $(tosw) { link.dll-w $(targets) : $(sources) ; } else { link.dll-o $(targets) : $(sources) ; } } # Target OS is not Windows, needs the RPATH stuff actions link-o bind LIBRARIES { "$(CONFIG_COMMAND)" -L"$(LINKPATH)" -o "$(<)" @"@($(<[1]:T).rsp:E=-Wl,-R$(SPACE)-Wl,"$(RPATH)" -Wl,-rpath-link$(SPACE)-Wl,"$(RPATH_LINK)" $(START-GROUP) "$(>:T)" "$(LIBRARIES:T)" $(FINDLIBS-ST-PFX:T) -l$(FINDLIBS-ST:T) $(FINDLIBS-SA-PFX:T) -l$(FINDLIBS-SA:T) $(END-GROUP))" $(OPTIONS) $(USER_OPTIONS) } # Target OS is not Windows, needs the RPATH and SONAME stuff actions link.dll-o bind LIBRARIES { "$(CONFIG_COMMAND)" -L"$(LINKPATH)" -o "$(<)" @"@($(<[1]:T).rsp:E=-Wl,-R$(SPACE)-Wl,"$(RPATH)" -Wl,-soname$(SPACE)-Wl,$(<[1]:D=) -shared $(START-GROUP) "$(>:T)" "$(LIBRARIES:T)" $(FINDLIBS-ST-PFX:T) -l$(FINDLIBS-ST:T) $(FINDLIBS-SA-PFX:T) -l$(FINDLIBS-SA:T) $(END-GROUP))" $(OPTIONS) $(USER_OPTIONS) } # Target OS is Windows, does not need the RPATH stuff actions link-w bind LIBRARIES { "$(CONFIG_COMMAND)" -L"$(LINKPATH)" -o "$(<)" @"@($(<[1]:T).rsp:E=$(START-GROUP) "$(>:T)" "$(LIBRARIES:T)" $(FINDLIBS-ST-PFX:T) -l$(FINDLIBS-ST:T) $(FINDLIBS-SA-PFX:T) -l$(FINDLIBS-SA:T) $(END-GROUP))" $(OPTIONS) $(USER_OPTIONS) } # Target OS is Windows, does not need the RPATH and SONAME stuff actions link.dll-w bind LIBRARIES { "$(CONFIG_COMMAND)" -L"$(LINKPATH)" -o "$(<)" -shared @"@($(<[1]:T).rsp:E=$(START-GROUP) "$(>:T)" "$(LIBRARIES:T)" $(FINDLIBS-ST-PFX:T) -l$(FINDLIBS-ST:T) $(FINDLIBS-SA-PFX:T) -l$(FINDLIBS-SA:T) $(END-GROUP))" $(OPTIONS) $(USER_OPTIONS) }