/
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-win.jam
(16396B)
# Copyright Vladimir Prus 2004. # 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) # Importing common is needed because the rules we inherit here depend on it. # That is nasty. import common ; import errors ; import feature ; import intel ; import msvc ; import os ; import set ; import toolset ; import generators ; import type ; import path ; feature.extend-subfeature toolset intel : platform : win ; toolset.inherit-generators intel-win <toolset>intel <toolset-intel:platform>win : msvc ; toolset.inherit-flags intel-win : msvc : : YLOPTION ; toolset.inherit-rules intel-win : msvc ; # Override default do-nothing generators. generators.override intel-win.compile.c.pch : pch.default-c-pch-generator ; generators.override intel-win.compile.c++.pch : pch.default-cpp-pch-generator ; generators.override intel-win.compile.rc : rc.compile.resource ; generators.override intel-win.compile.mc : mc.compile ; toolset.flags intel-win.compile PCH_SOURCE <pch>on : <pch-source> ; toolset.add-requirements <toolset>intel-win,<runtime-link>shared:<threading>multi ; # Initializes the intel toolset for windows rule init ( version ? : # the compiler version command * : # the command to invoke the compiler itself options * # Additional option: <compatibility> # either 'vc6', 'vc7', 'vc7.1' # or 'native'(default). ) { if $(version) { configure $(version) : $(command) : $(options) ; } else { if $(command) { errors.error "Autodetect of version from command not implemented!" ; } local intel_versions = [ get-autodetect-versions () ] ; if ! $(intel_versions) { errors.error "No intel compiler version found!" ; } else { local msvc-version = [ feature.get-values <compatibility> : $(options) ] ; # On auto config mode the user can still request a msvc backend. If some intel compiler doesn't support it, don't try to configure it! msvc-version = [ get-msvc-version-from-vc-string $(msvc-version) ] ; for local v in $(intel_versions) { if [ is-msvc-supported $(v) : $(msvc-version) ] { configure $(v) : : $(options) ; } } } } } local rule configure ( version ? : command * : options * ) { local compatibility = [ feature.get-values <compatibility> : $(options) ] ; # Allow to specify toolset and visual studio backend from commandline .e.g --toolset=intel-14.0-vc10 local vc_in_version = [ MATCH "(vc[0-9]+(\\.[0-9]+)?)$" : $(version) ] ; vc_in_version = $(vc_in_version[1]) ; if $(compatibility) && $(vc_in_version) { if $(compatibility) != $(vc_in_version) { errors.error "feature compatibility and vc version in toolset present!" ; } } if $(vc_in_version) && ! $(compatibility) { # vc Version must be stripped before check-init-parameters is called! version = [ MATCH (.+)-vc.+$ : $(version) ] ; compatibility = $(vc_in_version) ; options += <compatibility>$(vc_in_version) ; } if $(compatibility) { configure-really $(version) : $(command) : $(options) : $(compatibility) ; } else { local msvc_versions = [ feature.values <toolset-msvc:version> ] ; if ! $(msvc_versions) { ECHO notice\: no msvc versions detected. trying auto detect ; toolset.using msvc : all ; msvc_versions = [ feature.values <toolset-msvc:version> ] ; } if ! $(.iclvars-$(version)-supported-vcs) { errors.error "Supported msvc versions not known for intel $(version)" ; } for local v in $(msvc_versions) { if [ MATCH "($(v))" : $(.iclvars-$(version)-supported-vcs) ] { # Strip trailing .0 from msvc version as intel compiler uses atm only major version for Qvc local m = [ MATCH "([0-9]+).0$" : $(v) ] ; if $(m) { v = $(m) ; } v = "vc$(v)" ; local options_really = $(options) ; options_really += <compatibility>$(v) ; if $(.debug-configuration) { ECHO "configure: intel version: $(version) msvc version: $(v)" ; } configure-really $(version) : $(command) : $(options) : $(v) ; } } if ! [ feature.values <toolset-intel:version> ] { errors.error "Failed to register an intel toolset!" ; } } } local rule configure-really ( version ? : command * : options * : compatibility ) { local rewrite-setupscript = [ feature.get-values <rewrite-setup-scripts> : $(options) ] ; local condition = [ common.check-init-parameters intel-win : version $(version) : compatibility $(compatibility) ] ; local m = [ MATCH "([0-9]+).*" : $(version) ] ; local major = $(m[1]) ; if ! $(major) { errors.error "Major version not found: $(version)" ; } local msvc-version = [ get-msvc-version-from-vc-string $(compatibility) ] ; if ! $(msvc-version) { errors.user-error "Invalid value for compatibility option:" $(compatibility) ; } command = [ get-compiler-invocation-cmd $(major) : $(command) ] ; common.handle-options intel-win : $(condition) : $(command) : $(options) ; local root = [ feature.get-values <root> : $(options) ] ; if $(command) || $(root) { local bin = [ common.get-absolute-tool-path $(command[-1]) ] ; if $(major) >= 12 { bin = [ path.make $(bin) ] ; bin = [ path.parent $(bin) ] ; } root ?= $(bin) ; root = $(root)/ ; } local setup ; setup = [ path.glob $(root) : iclvars_*.bat ] ; if ! $(setup) { setup = [ path.join $(root) "iclvars.bat" ] ; setup = [ path.native $(setup) ] ; } local target_types ; local iclvars_vs_arg ; if $(major) >= 12 { # if we have a known intel toolset check for visual studio compatibility # if not trust parameters if ! [ is-msvc-supported $(version) : $(msvc-version) ] { errors.error "msvc $(msvc-version) not supported for intel toolset version $(version)" ; } if $(.iclvars-version-alias-$(compatibility)) { iclvars_vs_arg = $(.iclvars-version-alias-$(compatibility)) ; } else { errors.error "Don't know what parameter to pass for vc version ( $(compatibility) )" ; } # There are two possible paths for the 64-bit intel compiler, # one for the IA32-Intel64 cross compiler, and one for the native # 64 bit compiler. We prefer the latter one if it's installed, # and don't rely on whether the OS reports whether we're 64 or 32 bit # as that really only tells us which subsystem bjam is running in: # local intel64_path = [ path.join $(root) intel64 ] ; if [ path.glob $(intel64_path) : icl.exe ] { target_types = ia32 intel64 ; } else { target_types = ia32 ia32_intel64 ; } } else { target_types = default ; iclvars_vs_arg = $(compatibility) ; } local default-assembler-intel64 = ml64 ; local default-assembler-ia32_intel64 = ml64 ; local default-assembler-ia32 = "ml -coff" ; assembler = [ feature.get-values <assembler> : $(options) ] ; for local c in $(target_types) { local cpu-conditions ; local setup-call ; if $(major) >= 12 { cpu-conditions = $(condition)/$(.cpu-arch-$(c)) ; if ! $(setup) { # No setup script } else if $(rewrite-setupscript) = off || [ os.name ] != NT { setup-call = "call \"$(setup)\" $(c) $(iclvars_vs_arg) > nul " ; } else { if $(rewrite-setupscript) = always { toolset.flags intel-win .REWRITE-SETUP $(cpu-conditions) : true ; } toolset.flags intel-win .SETUP-SCRIPT $(cpu-conditions) : $(setup) ; toolset.flags intel-win .SETUP-OPTIONS $(cpu-conditions) : "$(c) $(iclvars_vs_arg)" ; } } else { setup-call = "call \""$(setup)"\" $(compatibility) > nul " ; cpu-conditions = $(condition) ; } if $(setup-call) { if [ os.name ] = NT { setup-call = $(setup-call)"\n " ; } else { setup-call = "cmd /S /C "$(setup-call)" \"&&\" " ; } toolset.flags intel-win .SETUP $(cpu-conditions) : $(setup-call) ; } if $(.debug-configuration) { for local cond in $(cpu-conditions) { ECHO "notice: [intel-cfg] condition: '$(cond)', setup: '$(setup-call)'" ; } } local cpu-assembler = $(assembler) ; cpu-assembler ?= $(default-assembler-$(c)) ; toolset.flags intel-win.compile .CC $(cpu-conditions) : icl ; toolset.flags intel-win.link .LD $(cpu-conditions) : xilink /nologo ; toolset.flags intel-win.archive .LD $(cpu-conditions) : xilink /lib /nologo ; toolset.flags intel-win.link .MT $(cpu-conditions) : mt -nologo ; toolset.flags intel-win.compile .ASM $(cpu-conditions) : $(cpu-assembler) -nologo ; toolset.flags intel-win.compile .MC $(cpu-conditions) : mc ; toolset.flags intel-win.compile .RC $(cpu-conditions) : rc ; } # Depending on the settings, running of tests require some runtime DLLs. toolset.flags intel-win RUN_PATH $(condition) : $(root) ; local C++FLAGS ; C++FLAGS += /nologo ; # Reduce the number of spurious error messages C++FLAGS += /Qwn5 /Qwd985 ; # Enable ADL C++FLAGS += -Qoption,c,--arg_dep_lookup ; #"c" works for C++, too # Disable Microsoft "secure" overloads in Dinkumware libraries since they # cause compile errors with Intel versions 9 and 10. if $(major) < 12 { C++FLAGS += -D_SECURE_SCL=0 ; } if $(major) > 5 { C++FLAGS += "/Zc:forScope" ; # Add support for correct for loop scoping. } # Add options recognized only by intel7 and above. if $(major) >= 7 { C++FLAGS += /Qansi_alias ; } if $(compatibility) = vc6 { C++FLAGS += # Emulate VC6 /Qvc6 # No wchar_t support in vc6 dinkum library. Furthermore, in vc6 # compatibility-mode, wchar_t is not a distinct type from unsigned # short. -DBOOST_NO_INTRINSIC_WCHAR_T ; } else { if $(major) > 5 { # Add support for wchar_t C++FLAGS += "/Zc:wchar_t" # Tell the dinkumware library about it. -D_NATIVE_WCHAR_T_DEFINED ; } } if $(compatibility) && $(compatibility) != native { C++FLAGS += /Q$(compatibility) ; } else { C++FLAGS += -Qoption,cpp,--arg_dep_lookup # The following options were intended to disable the Intel compiler's # 'bug-emulation' mode, but were later reported to be causing ICE with # Intel-Win 9.0. It is not yet clear which options can be safely used. # -Qoption,cpp,--const_string_literals # -Qoption,cpp,--new_for_init # -Qoption,cpp,--no_implicit_typename # -Qoption,cpp,--no_friend_injection # -Qoption,cpp,--no_microsoft_bugs ; } toolset.flags intel-win CFLAGS $(condition) : $(C++FLAGS) ; # By default, when creating PCH, intel adds 'i' to the explicitly # specified name of the PCH file. Of course, B2 is not # happy when compiler produces not the file it was asked for. # The option below stops this behaviour. toolset.flags intel-win CFLAGS $(condition) : -Qpchi- ; if ! $(compatibility) { # If there's no backend version, assume 7.1. compatibility = vc7.1 ; } msvc-version = [ msvc.resolve-possible-msvc-version-alias $(msvc-version) ] ; msvc.configure-version-specific intel-win : $(msvc-version) : $(condition) ; } local rule get-autodetect-versions { local result ; for local v in $(.intel-autodetect-versions) { local major = [ MATCH "([0-9]+).*" : $(v) ] ; # Use only major version if [ get-icl-path-from-environment $(major) ] { result += $(v) ; } } return $(result) ; } local rule get-icl-path-from-environment ( major_version ) { local path = [ os.environ ICPP_COMPILER$(major_version) ] ; if $(path) { path = [ path.make $(path) ] ; local cmdpath ; local subdirs = $(.icl-target-subdirectories) ; while $(subdirs) { cmdpath = [ path.join $(path) "bin/$(subdirs[0])/icl.exe" ] ; cmdpath = [ path.native $(cmdpath) ] ; if [ path.exists $(cmdpath) ] { subdirs = ; } else { cmdpath = ; subdirs = $(subdirs[2-]) ; } } path = $(cmdpath) ; } return $(path) ; } local rule get-compiler-invocation-cmd ( major_version : command * ) { if $(command) { return [ common.get-invocation-command intel-win : icl.exe : $(command) ] ; } else { local path = [ get-icl-path-from-environment $(major_version) ] ; return [ common.get-invocation-command intel-win : icl.exe : $(path) ] ; } } local rule is-msvc-supported ( intel-version : msvc-version ) { if ! $(msvc-version) { return true ; } else { if $(.iclvars-$(intel-version)-supported-vcs) { if [ MATCH "($(msvc-version))" : $(.iclvars-$(intel-version)-supported-vcs) ] { return true ; } } else { return true ; } } } local rule get-msvc-version-from-vc-string ( vc-string ) { local r = [ MATCH "^vc([0-9]+(\\.[0-9]+)?)$" : $(vc-string) ] ; return $(r[1]) ; } if [ MATCH (--debug-configuration) : [ modules.peek : ARGV ] ] { .debug-configuration = true ; } # Copied from msvc.jam # Supported CPU architectures. .cpu-arch-ia32 = <architecture>/<address-model> <architecture>/<address-model>32 <architecture>x86/<address-model> <architecture>x86/<address-model>32 ; .cpu-arch-intel64 = <architecture>/<address-model>64 <architecture>x86/<address-model>64 ; .cpu-arch-ia32_intel64 = <architecture>/<address-model>64 <architecture>x86/<address-model>64 ; .intel-autodetect-versions = 14.0 13.0 12.0 ; .iclvars-12.0-supported-vcs = "10.0 9.0 8.0" ; .iclvars-12.1-supported-vcs = "10.0 9.0 8.0" ; .iclvars-13.0-supported-vcs = "11.0 10.0 9.0" ; .iclvars-14.0-supported-vcs = "12.0 11.0 10.0 9.0" ; .iclvars-15.0-supported-vcs = "12.0 11.0 10.0 9.0" ; .iclvars-16.0-supported-vcs = "14.0 12.0 11.0 10.0 9.0" ; .iclvars-17.0-supported-vcs = "14.1 14.0 12.0 11.0 10.0" ; .iclvars-18.0-supported-vcs = "14.1 14.0 12.0 11.0 10.0" ; .iclvars-19.0-supported-vcs = "14.2 14.1 14.0 12.0" ; .iclvars-19.1-supported-vcs = "14.2 14.1 14.0 12.0" ; .iclvars-version-alias-vc14.2 = vs2019 ; .iclvars-version-alias-vc14.1 = vs2017 ; .iclvars-version-alias-vc14 = vs2015 ; .iclvars-version-alias-vc12 = vs2013 ; .iclvars-version-alias-vc11 = vs2012 ; .iclvars-version-alias-vc10 = vs2010 ; .iclvars-version-alias-vc9 = vs2008 ; .iclvars-version-alias-vc8 = vs2005 ; .icl-target-subdirectories = ia32 ia32_intel64 intel64 ; toolset.flags intel-win.link LIBRARY_OPTION <toolset>intel : "" ; toolset.flags intel-win YLOPTION ;
Save
cmd:
run