aboutsummaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorgatecat <gatecat@ds0.me>2022-03-08 18:47:00 +0000
committerGitHub <noreply@github.com>2022-03-08 18:47:00 +0000
commit1af997a0741d29ad972ab2a8ddbb3afaed5e84f9 (patch)
treed2af8b04200d52058554b1e516fe06e647ebcfdd /common
parent81e970867d655735920e4133ad130fe2a05172e7 (diff)
parent626eccdb89884b9e4792bdf3c74f72cbb363e9b9 (diff)
downloadnextpnr-1af997a0741d29ad972ab2a8ddbb3afaed5e84f9.tar.gz
nextpnr-1af997a0741d29ad972ab2a8ddbb3afaed5e84f9.tar.bz2
nextpnr-1af997a0741d29ad972ab2a8ddbb3afaed5e84f9.zip
Merge pull request #936 from whitequark/wasm-no-parallel-refine
Add missing part of PR #933
Diffstat (limited to 'common')
-rw-r--r--common/placer_heap.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/common/placer_heap.cc b/common/placer_heap.cc
index 5ffb7642..4c9ffb23 100644
--- a/common/placer_heap.cc
+++ b/common/placer_heap.cc
@@ -347,11 +347,14 @@ class HeAPPlacer
ctx->check();
lock.unlock_early();
+#if !defined(__wasm)
if (cfg.parallelRefine) {
if (!parallel_refine(ctx, ParallelRefineCfg(ctx))) {
return false;
}
- } else {
+ } else
+#endif
+ {
if (!placer1_refine(ctx, Placer1Cfg(ctx))) {
return false;
}