Skip to content
Snippets Groups Projects
Commit 1a32f828 authored by Cheng Shao's avatar Cheng Shao Committed by Marge Bot
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.
parent f9c1ae12
No related branches found
No related tags found
No related merge requests found
......@@ -17,6 +17,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