aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2012-04-05 18:02:29 -0400
committerMike Frysinger <vapier@gentoo.org>2012-04-05 18:02:29 -0400
commit0e573d1ab64ae999ef5ef5eaefbec537643705d8 (patch)
treea4496bf608579459461143965b0c9a9d0b344412 /gcc-config
parentgcc-config: fix typo in ldpath setup in non-ld.so.conf.d case (diff)
downloadgcc-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-xgcc-config2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc-config b/gcc-config
index 6f86179..dabae91 100755
--- a/gcc-config
+++ b/gcc-config
@@ -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)