/
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/intel-darwin.jam
(9785B)
# 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 intel ; import feature : feature ; import os ; import toolset ; import toolset : flags ; import gcc ; import common ; import errors ; import generators ; feature.extend-subfeature toolset intel : platform : darwin ; toolset.inherit-generators intel-darwin <toolset>intel <toolset-intel:platform>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 intel-darwin.prebuilt : builtin.lib-generator ; generators.override intel-darwin.prebuilt : builtin.prebuilt ; generators.override intel-darwin.searched-lib-generator : searched-lib-generator ; toolset.inherit-rules intel-darwin : gcc ; toolset.inherit-flags intel-darwin : gcc : <inlining>off <inlining>on <inlining>full <optimization>space <warnings>off <warnings>all <warnings>on <warnings>extra <warnings>pedantic <warnings-as-errors>off <warnings-as-errors>on <architecture>x86/<address-model>32 <architecture>x86/<address-model>64 ; if [ MATCH (--debug-configuration) : [ modules.peek : ARGV ] ] { .debug-configuration = true ; } # Initializes the intel-darwin toolset # version in mandatory # name (default icc) is used to invoke the specified intel compiler # compile and link options allow you to specify addition command line options for each version rule init ( version ? : command * : options * ) { local condition = [ common.check-init-parameters intel-darwin : version $(version) ] ; command = [ common.get-invocation-command intel-darwin : icc : $(command) : /opt/intel_cc_80/bin ] ; common.handle-options intel-darwin : $(condition) : $(command) : $(options) ; # handle <library-path> # local library-path = [ feature.get-values <library-path> : $(options) ] ; # flags intel-darwin.link USER_OPTIONS $(condition) : [ feature.get-values <dll-path> : $(options) ] ; local root = [ feature.get-values <root> : $(options) ] ; local bin ; if $(command) || $(root) { bin ?= [ common.get-absolute-tool-path $(command[-1]) ] ; root ?= $(bin:D) ; if $(root) { # Libraries required to run the executable may be in either # $(root)/lib (10.1 and earlier) # or # $(root)/lib/architecture-name (11.0 and later: local lib_path = $(root)/lib $(root:P)/lib/$(bin:B) ; if $(.debug-configuration) { ECHO notice\: using intel libraries "::" $(condition) "::" $(lib_path) ; } flags intel-darwin.link RUN_PATH $(condition) : $(lib_path) ; } } local m = [ MATCH (..).* : $(version) ] ; local n = [ MATCH (.)\\. : $(m) ] ; if $(n) { m = $(n) ; } local major = $(m) ; if $(major) = "9" { flags intel-darwin.compile OPTIONS $(condition)/<inlining>off : -Ob0 ; flags intel-darwin.compile OPTIONS $(condition)/<inlining>on : -Ob1 ; flags intel-darwin.compile OPTIONS $(condition)/<inlining>full : -Ob2 ; flags intel-darwin.compile OPTIONS $(condition)/<vectorize>off : -vec-report0 ; flags intel-darwin.compile OPTIONS $(condition)/<vectorize>on : -vec-report1 ; flags intel-darwin.compile OPTIONS $(condition)/<vectorize>full : -vec-report5 ; flags intel-darwin.link OPTIONS $(condition)/<runtime-link>static : -static -static-libcxa -lstdc++ -lpthread ; flags intel-darwin.link OPTIONS $(condition)/<runtime-link>shared : -shared-libcxa -lstdc++ -lpthread ; } else { flags intel-darwin.compile OPTIONS $(condition)/<inlining>off : -inline-level=0 ; flags intel-darwin.compile OPTIONS $(condition)/<inlining>on : -inline-level=1 ; flags intel-darwin.compile OPTIONS $(condition)/<inlining>full : -inline-level=2 ; flags intel-darwin.compile OPTIONS $(condition)/<vectorize>off : -vec-report0 ; flags intel-darwin.compile OPTIONS $(condition)/<vectorize>on : -vec-report1 ; flags intel-darwin.compile OPTIONS $(condition)/<vectorize>full : -vec-report5 ; flags intel-darwin.link OPTIONS $(condition)/<runtime-link>static : -static -static-intel -lstdc++ -lpthread ; flags intel-darwin.link OPTIONS $(condition)/<runtime-link>shared : -shared-intel -lstdc++ -lpthread ; } local minor = [ MATCH ".*\\.(.).*" : $(version) ] ; # wchar_t char_traits workaround for compilers older than 10.2 if $(major) = "9" || ( $(major) = "10" && ( $(minor) = "0" || $(minor) = "1" ) ) { flags intel-darwin.compile DEFINES $(condition) : __WINT_TYPE__=int : unchecked ; } # - Ranlib. local ranlib = [ feature.get-values <ranlib> : $(options) ] ; toolset.flags intel-darwin.archive .RANLIB $(condition) : $(ranlib[1]) ; # - Archive builder. local archiver = [ feature.get-values <archiver> : $(options) ] ; toolset.flags intel-darwin.archive .AR $(condition) : $(archiver[1]) ; } SPACE = " " ; flags intel-darwin.compile OPTIONS <cflags> ; flags intel-darwin.compile.c++ OPTIONS <cxxflags> ; # flags intel-darwin.compile INCLUDES <include> ; flags intel-darwin.compile OPTIONS <optimization>space : -O1 ; # no specific space optimization flag in icc # .cpu-type-em64t = prescott nocona core2 corei7 corei7-avx core-avx-i conroe conroe-xe conroe-l allendale merom merom-xe kentsfield kentsfield-xe penryn wolfdale yorksfield nehalem sandy-bridge ivy-bridge haswell broadwell skylake skylake-avx512 cannonlake icelake-client icelake-server cascadelake cooperlake tigerlake ; .cpu-type-amd64 = k8 opteron athlon64 athlon-fx k8-sse3 opteron-sse3 athlon64-sse3 amdfam10 barcelona bdver1 bdver2 bdver3 bdver4 btver1 btver2 znver1 znver2 ; .cpu-type-x86-64 = $(.cpu-type-em64t) $(.cpu-type-amd64) ; flags intel-darwin.compile OPTIONS <instruction-set>$(.cpu-type-x86-64)/<address-model>32 : -m32 ; # -mcmodel=small ; flags intel-darwin.compile OPTIONS <instruction-set>$(.cpu-type-x86-64)/<address-model>64 : -m64 ; # -mcmodel=large ; flags intel-darwin.compile.c OPTIONS <warnings>off : -w0 ; flags intel-darwin.compile.c OPTIONS <warnings>on : -w1 ; flags intel-darwin.compile.c OPTIONS <warnings>all : -w2 ; flags intel-darwin.compile.c OPTIONS <warnings>extra : -w3 ; flags intel-darwin.compile.c OPTIONS <warnings>pedantic : -w3 -Wcheck ; flags intel-darwin.compile.c OPTIONS <warnings-as-errors>on : -Werror-all ; flags intel-darwin.compile.c++ OPTIONS <warnings>off : -w0 ; flags intel-darwin.compile.c++ OPTIONS <warnings>on : -w1 ; flags intel-darwin.compile.c++ OPTIONS <warnings>all : -w2 ; flags intel-darwin.compile.c++ OPTIONS <warnings>extra : -w3 ; flags intel-darwin.compile.c++ OPTIONS <warnings>pedantic : -w3 -Wcheck ; flags intel-darwin.compile.c++ OPTIONS <warnings-as-errors>on : -Werror-all ; actions compile.c { "$(CONFIG_COMMAND)" -xc $(OPTIONS) -D$(DEFINES) -I"$(INCLUDES)" -c -o "$(<)" "$(>)" } actions compile.c++ { "$(CONFIG_COMMAND)" -xc++ $(OPTIONS) -D$(DEFINES) -I"$(INCLUDES)" -c -o "$(<)" "$(>)" } flags intel-darwin ARFLAGS <archiveflags> ; # Default value. Mostly for the sake of intel-linux # that inherits from gcc, but does not has the same # logic to set the .AR variable. We can put the same # logic in intel-linux, but that's hardly worth the trouble # as on Linux, 'ar' is always available. .AR = ar ; .RANLIB = ranlib ; 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)" -cs "$(<)" } flags intel-darwin.link USER_OPTIONS <linkflags> ; # 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) = <s>intel-darwin-link-semaphore ; } actions link bind LIBRARIES { "$(CONFIG_COMMAND)" $(USER_OPTIONS) -L"$(LINKPATH)" -o "$(<)" "$(>)" "$(LIBRARIES)" -l$(FINDLIBS-SA) -l$(FINDLIBS-ST) $(OPTIONS) } actions link.dll bind LIBRARIES { "$(CONFIG_COMMAND)" $(USER_OPTIONS) -L"$(LINKPATH)" -o "$(<)" -single_module -dynamiclib -install_name "$(<[1]:D=)" "$(>)" "$(LIBRARIES)" -l$(FINDLIBS-SA) -l$(FINDLIBS-ST) $(OPTIONS) }
Save
cmd:
run