remove unreachable code

This commit is contained in:
Michael Hirsch, Ph.D 2019-07-31 12:09:56 -04:00 committed by Jussi Pakkanen
parent 923efe9eda
commit 7aecfb1540
2 changed files with 2 additions and 4 deletions

View File

@ -763,7 +763,6 @@ class Environment:
target = 'x86' if 'IA-32' in err else 'x86_64'
cls = IntelClCCompiler if lang == 'c' else IntelClCPPCompiler
return cls(compiler, version, for_machine, is_cross, exe_wrap, target)
return cls(ccache + compiler, version, compiler_type, for_machine, is_cross, exe_wrap, full_version=full_version)
if 'Microsoft' in out or 'Microsoft' in err:
# Latest versions of Visual Studio print version
# number to stderr but earlier ones print version

View File

@ -413,9 +413,8 @@ def fix_darwin(fname, new_rpath, final_path, install_name_mappings):
subprocess.check_call(['install_name_tool', fname] + args,
stdout=subprocess.DEVNULL,
stderr=subprocess.DEVNULL)
except Exception:
raise
sys.exit(0)
except Exception as err:
raise SystemExit(err)
def fix_jar(fname):
subprocess.check_call(['jar', 'xfv', fname, 'META-INF/MANIFEST.MF'])