Skip to content

Commit

Permalink
RUSTC_WRAPPER must be an absolute path
Browse files Browse the repository at this point in the history
  • Loading branch information
ctz committed Dec 27, 2017
1 parent 8f2ecbf commit 25a050e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion admin/coverage
Expand Up @@ -3,6 +3,7 @@
import os
import glob
import subprocess
from os import path

LLVM_PATH = glob.glob('/usr/lib/llvm-3.8/lib/clang/3.8.[0-9]/lib/linux/')[0]
COVERAGE_OPTIONS = '-Ccodegen-units=1 -Clink-dead-code -Cpasses=insert-gcov-profiling -Zno-landing-pads -L%s -lclang_rt.profile-x86_64' % LLVM_PATH
Expand All @@ -25,7 +26,7 @@ def run(which):
def rustc(*args):
exe = ['cargo', 'rustc', '--all-features'] + list(args)
env = dict(os.environ)
env.update(RUSTC_WRAPPER = './admin/coverage-rustc',
env.update(RUSTC_WRAPPER = path.abspath('./admin/coverage-rustc'),
COVERAGE_OPTIONS = COVERAGE_OPTIONS)
subprocess.check_call(exe, env = env)

Expand Down

0 comments on commit 25a050e

Please sign in to comment.