summaryrefslogtreecommitdiffstats
path: root/src/engine/SCons/Platform/aix.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/engine/SCons/Platform/aix.py')
-rw-r--r--src/engine/SCons/Platform/aix.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/engine/SCons/Platform/aix.py b/src/engine/SCons/Platform/aix.py
index 727aa9b..e0d2e76 100644
--- a/src/engine/SCons/Platform/aix.py
+++ b/src/engine/SCons/Platform/aix.py
@@ -43,10 +43,7 @@ def get_xlc(env, xlc, xlc_r, packages):
xlcPath = None
xlcVersion = None
- try:
- xlc = env['CC']
- except KeyError:
- xlc = 'xlc'
+ xlc = env.get('CC', 'xlc')
for package in packages:
cmd = "lslpp -fc " + package + " 2>/dev/null | egrep '" + xlc + "([^-_a-zA-Z0-9].*)?$'"
line = os.popen(cmd).readline()