aboutsummaryrefslogtreecommitdiffstats
path: root/common/kernel
diff options
context:
space:
mode:
authorCatherine <whitequark@whitequark.org>2023-02-23 03:25:48 +0000
committermyrtle <gatecat@ds0.me>2023-02-23 09:45:19 +0100
commitebbaf8c08dbde251aa4f2809f296b20a7a2266a8 (patch)
treeea9b0bd8636395ae6e4faa956c8f49585e74c7d6 /common/kernel
parent8f0731edc99c828ffa850207c80cfb99651b6ae4 (diff)
downloadnextpnr-ebbaf8c08dbde251aa4f2809f296b20a7a2266a8.tar.gz
nextpnr-ebbaf8c08dbde251aa4f2809f296b20a7a2266a8.tar.bz2
nextpnr-ebbaf8c08dbde251aa4f2809f296b20a7a2266a8.zip
common: disable parallel refinement only without threads.
Previously it was always disabled on WebAssembly builds.
Diffstat (limited to 'common/kernel')
-rw-r--r--common/kernel/command.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/kernel/command.cc b/common/kernel/command.cc
index 8c8b5950..68066af6 100644
--- a/common/kernel/command.cc
+++ b/common/kernel/command.cc
@@ -200,7 +200,7 @@ po::options_description CommandHandler::getGeneralOptions()
"allow placer to attempt up to max(10000, total cells^2 / N) iterations to place a cell (int "
"N, default: 8, 0 for no timeout)");
-#if !defined(__wasm)
+#if !defined(NPNR_DISABLE_THREADS)
general.add_options()("parallel-refine", "use new experimental parallelised engine for placement refinement");
#endif