# Copyright (c) 2003 Michael Stevens # # 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 toolset ; import feature ; import toolset : flags ; import intel ; feature.extend-subfeature toolset intel : platform : linux ; toolset.inherit-generators intel-linux intel linux : gcc ; toolset.inherit-flags intel-linux : gcc : off on full space ; toolset.inherit-rules intel-linux : gcc ; # Initializes the intel-linux toolset # version in mandatory # name (default icc) is used to invoke the specified intellinux complier # compile and link options allow you to specify addition command line options for each version rule init ( version : name ? : compile_options * : link_options * ) { name ?= "icc" ; feature.extend-subfeature toolset intel : version : $(version) ; flags intel-linux CONFIG_NAME intel-linux-$(version) : $(name) ; flags intel-linux CONFIG_COMPILE intel-linux-$(version) : $(compile_options) ; flags intel-linux CONFIG_LINK intel-linux-$(version) : $(link_options) ; } flags intel-linux.compile OPTIONS off : "-Ob0" ; flags intel-linux.compile OPTIONS on : "-Ob1" ; flags intel-linux.compile OPTIONS full : "-Ob2" ; flags intel-linux.compile OPTIONS space : "-O1" ; # no specific space optimization flag in icc actions compile.c++ { $(CONFIG_NAME) -c -xc++ $(CONFIG_COMPILE) $(OPTIONS) -D$(DEFINES) -I"$(INCLUDES)" -c -o "$(<)" "$(>)" } actions compile.c { $(CONFIG_NAME) -c -xc $(CONFIG_COMPILE) $(OPTIONS) -D$(DEFINES) -I"$(INCLUDES)" -c -o "$(<)" "$(>)" } actions link bind LIBRARIES { $(CONFIG_NAME) $(CONFIG_LINK) $(OPTIONS) -L"$(LINKPATH)" -Wl,-R$(SPACE)-Wl,"$(RPATH)" -Wl,-rpath-link$(SPACE)-Wl,"$(RPATH_LINK)" -o "$(<)" "$(>)" "$(LIBRARIES)" -Wl,-Bdynamic -l$(FINDLIBS-SA) -Wl,-Bstatic -l$(FINDLIBS-ST) -Wl,-B$(LINK-RUNTIME) } # Differ from 'link' above only by -shared. actions link.dll bind LIBRARIES { $(CONFIG_NAME) $(CONFIG_LINK) $(OPTIONS) -L"$(LINKPATH)" -Wl,-R$(SPACE)-Wl,"$(RPATH)" -o "$(<)" -Wl,-h$(SPACE)-Wl,$(<[1]:D=) -shared "$(>)" "$(LIBRARIES)" -Wl,-Bdynamic -l$(FINDLIBS-SA) -Wl,-Bstatic -l$(FINDLIBS-ST) "$(LIBRARIES)" -Wl,-Bdynamic -l$(FINDLIBS-SA) -Wl,-Bstatic -l$(FINDLIBS-ST) -Wl,-B$(LINK-RUNTIME) }