From 484a42cd622203fb0f2e46ee099c66d229048e9b Mon Sep 17 00:00:00 2001 From: Vladimir Pouzanov Date: Thu, 4 Sep 2014 14:36:03 +0100 Subject: [PATCH] Do not allow to relocate code, fixes kcov --- support/rake.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/support/rake.rb b/support/rake.rb index cd2e2ecd..43951457 100644 --- a/support/rake.rb +++ b/support/rake.rb @@ -134,7 +134,7 @@ def make_binary(n, h) def rust_tests(n, h) h[:test] = true - h[:flags] = '-g' + h[:flags] = '-g -C relocation-model=static' h[:optimize] = '0' compile_rust n, h run_task = Rake::Task.define_task("run_#{n}".to_sym => h[:produce]) do |t|