Skip to content
Snippets Groups Projects
Commit aaa03ec1 authored by Cheng Shao's avatar Cheng Shao 🏖️
Browse files

hadrian: re-enable PIC for gmp on wasm

This commit re-enables --with-pic=yes configuration option of gmp when
building for wasm, given we're about to include support for shared
libraries, TH and ghci.

(cherry picked from commit 775410fd)
parent e51ffbde
No related branches found
No related tags found
No related merge requests found
...@@ -28,10 +28,7 @@ configureBuilderArgs = do ...@@ -28,10 +28,7 @@ configureBuilderArgs = do
-- more detailed explanation of this configure -- more detailed explanation of this configure
-- option. -- option.
<> [ "--enable-alloca=malloc-notreentrant" | targetArch == "wasm32" ] <> [ "--enable-alloca=malloc-notreentrant" | targetArch == "wasm32" ]
-- Enable PIC unless target is wasm32, in which <> [ "--with-pic=yes" ]
-- case we don't want libgmp.a to be bloated due
-- to PIC overhead.
<> [ "--with-pic=yes" | targetArch /= "wasm32" ]
, builder (Configure libffiPath) ? do , builder (Configure libffiPath) ? do
top <- expr topDirectory top <- expr topDirectory
......
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