From d40fcf89c836efa7460e3e0024f4033023599643 Mon Sep 17 00:00:00 2001 From: Nick Lewycky Date: Fri, 13 Sep 2019 16:53:07 -0700 Subject: [PATCH 1/2] Switch from PIC+Default (small) to Static+Large. Should fix flaky test failures. --- lib/llvm-backend/src/backend.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/llvm-backend/src/backend.rs b/lib/llvm-backend/src/backend.rs index a0fb80c0352..682bd72782b 100644 --- a/lib/llvm-backend/src/backend.rs +++ b/lib/llvm-backend/src/backend.rs @@ -189,8 +189,8 @@ impl LLVMBackend { &TargetMachine::get_host_cpu_name().to_string(), &TargetMachine::get_host_cpu_features().to_string(), OptimizationLevel::Aggressive, - RelocMode::PIC, - CodeModel::Default, + RelocMode::Static, + CodeModel::Large, ) .unwrap(); From 82b0e57ca22a1066c6c444d4b3ffb345f4419633 Mon Sep 17 00:00:00 2001 From: Nick Lewycky Date: Fri, 13 Sep 2019 16:58:03 -0700 Subject: [PATCH 2/2] Add changelog entry. --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 01c7d0ef65a..1651f7ffbeb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ Blocks of changes will separated by version increments. ## **[Unreleased]** +- [#790](https://github.com/wasmerio/wasmer/pull/790) Fix flaky test failure with LLVM, switch to large code model. - [#788](https://github.com/wasmerio/wasmer/pull/788) Use union merge on the changelog file. - [#785](https://github.com/wasmerio/wasmer/pull/785) Include Apache license file for spectests. - [#786](https://github.com/wasmerio/wasmer/pull/786) In the LLVM backend, lower atomic wasm operations to atomic machine instructions.