aboutsummaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
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;
}