diff options
author | Mike Frysinger <vapier@gentoo.org> | 2012-04-05 18:02:29 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2012-04-05 18:02:29 -0400 |
commit | 0e573d1ab64ae999ef5ef5eaefbec537643705d8 (patch) | |
tree | a4496bf608579459461143965b0c9a9d0b344412 /gcc-config | |
parent | gcc-config: fix typo in ldpath setup in non-ld.so.conf.d case (diff) | |
download | gcc-config-0e573d1ab64ae999ef5ef5eaefbec537643705d8.tar.gz gcc-config-0e573d1ab64ae999ef5ef5eaefbec537643705d8.tar.bz2 gcc-config-0e573d1ab64ae999ef5ef5eaefbec537643705d8.zip |
gcc-config: slightly optimize env setup when switching profiles
Since this code already sources the entire env.d file, there's no point
in manually loading a single variable out of it.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'gcc-config')
-rwxr-xr-x | gcc-config | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -329,11 +329,11 @@ switch_profile() { if egrep -q '^(PATH|ROOTPATH)=' "${GCC_ENV_D}/${CC_COMP}" ; then convert_profile_paths "${GCC_ENV_D}/${CC_COMP}" || return 1 fi - source_var GCC_PATH "${GCC_ENV_D}/${CC_COMP}" # Setup things properly again for this profile unset GCC_SPECS LDPATH source "${GCC_ENV_D}/${CC_COMP}" + # Ignore active profile errors here since we're switching away OLD_CC_COMP=$(get_current_profile 2>/dev/null) |