From 72855a4c61b680b2b7b335b3f2ecbf677e42fede Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Sat, 3 Jan 2004 20:05:59 +0000 Subject: [PATCH] work with icc 8.0 and handle the no-configuration case [SVN r21459] --- v1/intel-linux-tools.html | 44 +++++++++++++++++++++++---------------- v1/intel-linux-tools.jam | 30 +++++++++++++++++++------- 2 files changed, 48 insertions(+), 26 deletions(-) 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 @@

Introduction

-

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.

-

Configuration Variables

The intel-linux toolset responds to the - following variables which can be set in the environment or configured on - the jam command-line using - -sVARIABLE_NAME=value: +

Configuration Variables

The intel-linux toolset responds to + the following variables which can be set in the environment or + configured on the jam command-line using + -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. @@ -51,28 +54,33 @@ - + - + + + + + + + +
INTEL_LINUX_VERSIONINTEL_VERSION The version of the compiler to use."60"70If INTEL_PATH is set, this variable is ignored. + + +
INTEL_PATHThe 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 ####