diff --git a/v1/intel-linux-tools.html b/v1/intel-linux-tools.html index 731eb0ea2..d774e357c 100644 --- a/v1/intel-linux-tools.html +++ b/v1/intel-linux-tools.html @@ -30,14 +30,17 @@
Boost.Build's intel-linux - toolset supports the Intel C++ Compiler for Linux.
+Boost.Build's intel-linux toolset supports the Intel + C++ Compiler for Linux.
--sVARIABLE_NAME=value:
+ -sVARIABLE_NAME=value. If neither
+ variable is set but iccvars.sh can be found in the
+ PATH, then the version of the tools installed where
+ iccvars.sh lives is used.
INTEL_LINUX_VERSION |
+ INTEL_VERSION |
The version of the compiler to use. | -"60" |
+ 70 |
+
+ If INTEL_PATH is set, this variable is ignored.
+
+
+ |
INTEL_PATH |
+
+ The path to the compiler installation. | + +The default installation location for the version specified by
+INTEL_VERSION
- | This is used to locate the setup script for the compiler. The
- script used is
- /opt/intel/compiler$(INTEL_LINUX_VERSION)/ia32/bin/iccvars.sh.
- This variable is only used if and only if the setup script has not been
- previously loaded. This is to allow for installations where the setup
- is already done. In which case the script is not executed before the
- invocation of the tools. |
Revised - 14 May, 2002
+ 3 Jan, 2004 -Copyright © Dave Abrahams 2002.
+Copyright © Dave Abrahams 2002-2003.
Use, modification, and distribution are subject to the Boost
Software License, Version 1.0. (See accompanying file Intel
C++
-# Intel root directory set?
-if ! $(IA32ROOT)
+set-as-singleton INTEL_PATH ;
+
+INTEL_VERSION ?= $(INTEL_LINUX_VERSION) ; # For backwards compatibility
+
+# Attempt to look in the PATH if no variables have been set up.
+if ! $(INTEL_VERSION) && ! $(INTEL_PATH)
{
- # Compiler version
- INTEL_LINUX_VERSION ?= "60" ;
+ local paths = [ MATCH ^(.*/(compiler[567]0/ia32|intel_cc_[0-9]+))/ : [ GLOB $(PATH) : iccvars.sh ] ] ;
+ INTEL_PATH ?= $(paths[0]) ;
}
-flags intel-linux INTEL_LINUX_VERSION : $(INTEL_LINUX_VERSION) ;
+INTEL_VERSION ?= 70 ;
+
+# In case the path is unspecified, try to deduce it from the version
+if $(INTEL_VERSION) in 50 60 70
+{
+ INTEL_PATH ?= /opt/intel/compiler$(INTEL_VERSION)/ia32 ;
+}
+else
+{
+ INTEL_PATH ?= /opt/intel_cc_$(INTEL_VERSION) ;
+}
# Root directory
-flags intel-linux INTEL_LINUX_ROOT : "/opt/intel/compiler"$(INTEL_LINUX_VERSION) ;
+flags intel-linux INTEL_LINUX_ROOT : $(INTEL_PATH) ;
# Setup script
-flags intel-linux INTEL_LINUX_SETUP : ". "$(INTEL_LINUX_ROOT)"/ia32/bin/iccvars.sh" ;
+flags intel-linux INTEL_LINUX_SETUP : ". "$(INTEL_LINUX_ROOT)"/bin/iccvars.sh" ;
# Additional DLL directory
-flags intel-linux INTEL_LINUX_RUN_LD_LIBRARY_PATH : $(INTEL_LINUX_ROOT)"/ia32/lib" ;
+flags intel-linux INTEL_LINUX_RUN_LD_LIBRARY_PATH : $(INTEL_LINUX_ROOT)"/lib" ;
#### compiler and linker switches ####