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

hadrian: disable in-tree gmp fft code path for wasm32

This patch disables in-tree GMP FFT code paths for wasm32 target in
order to give up some performance of multiplying very large operands
in exchange for reduced code size.

(cherry picked from commit 1a32f828)
(cherry picked from commit 097ea6e2)
parent 9506a531
No related branches found
No related tags found
No related merge requests found
......@@ -16,6 +16,10 @@ configureBuilderArgs = do
pure $ [ "--enable-shared=no"
, "--host=" ++ targetPlatform -- GMP's host is our target
, "--build=" ++ buildPlatform ]
-- Disable FFT logic on wasm32, sacrifice
-- performance of multiplying very large operands
-- to save code size
<> [ "--disable-fft" | targetArch == "wasm32" ]
-- Disable GMP's alloca usage on wasm32, it may
-- cause stack overflow (#22602) due to the
-- rather small 64KB default stack size. See
......
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