Skip to content
Snippets Groups Projects
Commit 9dc37ffd authored by Cheng Shao's avatar Cheng Shao :beach:
Browse files

hadrian: build in-tree GMP with malloc-notreentrant on wasm32

This patch makes hadrian build in-tree GMP with the
--enable-alloca=malloc-notreentrant configure option. We will only
need malloc-reentrant when we have threaded RTS and SMP support on
wasm32, which will take some time to happen, before which we should
use malloc-notreentrant to avoid undesired runtime overhead.

(cherry picked from commit 06277d56)
parent a38b788d
No related branches found
No related tags found
No related merge requests found
......@@ -27,7 +27,7 @@ configureBuilderArgs = do
-- https://gmplib.org/manual/Build-Options for
-- more detailed explanation of this configure
-- option.
<> [ "--enable-alloca=malloc-reentrant" | targetArch == "wasm32" ]
<> [ "--enable-alloca=malloc-notreentrant" | targetArch == "wasm32" ]
-- Enable PIC unless target is wasm32, in which
-- case we don't want libgmp.a to be bloated due
-- to PIC overhead.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment