Skip to content

Commit

Permalink
remove unreachable code
Browse files Browse the repository at this point in the history
  • Loading branch information
scivision authored and jpakkane committed Aug 2, 2019
1 parent 923efe9 commit 7aecfb1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion mesonbuild/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -763,7 +763,6 @@ def sanitize(p):
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
Expand Down
5 changes: 2 additions & 3 deletions mesonbuild/scripts/depfixer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'])
Expand Down

0 comments on commit 7aecfb1

Please sign in to comment.