[Git][ghc/ghc][wip/rts-configure-2] 4 commits: Give the RTS it's own configure script

John Ericson (@Ericson2314) gitlab at gitlab.haskell.org
Mon Jan 2 07:55:00 UTC 2023



John Ericson pushed to branch wip/rts-configure-2 at Glasgow Haskell Compiler / GHC


Commits:
d0a146a5 by John Ericson at 2023-01-01T12:48:47-05:00
Give the RTS it's own configure script

Currently it doesn't do much anything, we are just trying to introduce
it without breaking the build. Later, we will move functionality from
the top-level configure script over to it.

We need to bump Cabal for https://github.com/haskell/cabal/pull/8649; to
facilitate and existing hack of skipping some configure checks for the
RTS we now need to skip just *part* not *all* of the "post configure"
hook, as running the configure script (which we definitely want to do)
is also implemented as part of the "post configure" hook. But doing this
requires exposing functionality that wasn't exposed before.

- - - - -
dde92d14 by John Ericson at 2023-01-01T12:49:18-05:00
rts: Move external symbols logic to the configure script

This is much more terse because we are programatically handling the
leading underscore.

- - - - -
7b2cf807 by John Ericson at 2023-01-02T02:28:55-05:00
Move lib{numa,dw} defines to RTS configure

Clean up the m4 to handle the auto case always and be more consistent.
Also simplify the CPP --- we should always have both headers if we are
using libnuma.

"side effects" (AC_DEFINE, and AC_SUBST) are removed from the macros to
better separate searching from actions taken based on search results.
This might seem overkill now, but will make shuffling logic between
configure scripts easier later.

- - - - -
7beb9fff by Ben Gamari at 2023-01-02T02:52:48-05:00
rts configure script

Need to use CPP not `if` in rts.buildinfo

Bump cabal submodule to include
https://github.com/haskell/cabal/pull/8565

- - - - -


30 changed files:

- boot
- compiler/GHC/Linker/Dynamic.hs
- compiler/GHC/Linker/Static.hs
- compiler/GHC/Platform.hs
- compiler/GHC/Settings/IO.hs
- configure.ac
- distrib/configure.ac.in
- hadrian/bindist/Makefile
- hadrian/bindist/config.mk.in
- hadrian/cabal.project
- hadrian/cfg/system.config.in
- hadrian/hadrian.cabal
- hadrian/src/Base.hs
- hadrian/src/Hadrian/Haskell/Cabal/Parse.hs
- hadrian/src/Oracles/Flag.hs
- hadrian/src/Oracles/Setting.hs
- hadrian/src/Rules/Generate.hs
- hadrian/src/Rules/Lint.hs
- hadrian/src/Rules/Register.hs
- hadrian/src/Settings/Packages.hs
- libraries/Cabal
- libraries/base/.gitignore
- rts/.gitignore
- + rts/configure.ac
- + rts/external-symbols.list.in
- rts/include/rts/PosixSource.h
- rts/linker/Elf.c
- rts/linker/elf_got.c
- m4/fp_bfd_support.m4 → rts/m4/fp_bfd_support.m4
- m4/fp_cc_supports__atomics.m4 → rts/m4/fp_cc_supports__atomics.m4


The diff was not included because it is too large.


View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/compare/7e365a6c44292f8f3e37c38a932c29339987e759...7beb9fff1bee1ccbf7f2258ce527b8d5df2a85ea

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/compare/7e365a6c44292f8f3e37c38a932c29339987e759...7beb9fff1bee1ccbf7f2258ce527b8d5df2a85ea
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20230102/2a1e3209/attachment.html>


More information about the ghc-commits mailing list