Cleanly setting C compiler options when building RTS

Alp Mestanogullari alp at well-typed.com
Thu Jul 11 09:48:43 UTC 2019


Since you mention the Shake script, should we assume you're using 
Hadrian, or the Make build system?

On 11/07/2019 11:19, Siddharth Bhat wrote:
> Hello all,
>
> I was interested in building the GHC RTS with GCC's AddressSanitizer 
> and Ubsan enabled.
>
> What I want to do very specifically is to pass "-fsanitize=address 
> -fsanitize=undefined" when compiling the RTS.
>
> What's the "correct" way to set this up in the build system? Is there 
> a configure flag? Do I need to change the Shake script?
> Thanks,
> ~Siddharth
>
> _______________________________________________
> ghc-devs mailing list
> ghc-devs at haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs

-- 
Alp Mestanogullari, Haskell Consultant
Well-Typed LLP, https://www.well-typed.com/

Registered in England and Wales, OC335890
118 Wymering Mansions, Wymering Road, London, W9 2NF, England

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-devs/attachments/20190711/7b91f69b/attachment.html>


More information about the ghc-devs mailing list