Skip to content
Snippets Groups Projects
Commit 3c4f945a authored by Cheng Shao's avatar Cheng Shao
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)
(cherry picked from commit 0f9a8aaf)
parent 0dac58e1
No related branches found
No related tags found
No related merge requests found
......@@ -26,7 +26,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