Skip to content
Snippets Groups Projects
  1. Oct 31, 2023
  2. Oct 22, 2023
  3. Oct 12, 2023
    • John Ericson's avatar
      Split BFD support to RTS configure · f399812c
      John Ericson authored and Marge Bot's avatar Marge Bot committed
      The flag is still in the top-level configure, but the other checks
      (which define various macros --- important) are in the RTS configure.
      f399812c
    • John Ericson's avatar
      Adjust `FP_FIND_LIBFFI` · ea7a1447
      John Ericson authored and Marge Bot's avatar Marge Bot committed
      Just set vars, and `AC_SUBST` in top-level configure.
      
      Don't define `HAVE_SYSTEM_LIBFFI` because nothing is using it. It hasn't
      be in used since 36093407 (part of the
      make build system).
      ea7a1447
  4. Oct 11, 2023
  5. Oct 10, 2023
    • Ben Gamari's avatar
      configure: Probe stage0 link flags · c00a4bd6
      Ben Gamari authored and Marge Bot's avatar Marge Bot committed
      For consistency with later stages and CC.
      c00a4bd6
    • Ben Gamari's avatar
      toolchain: Don't pass --target to emscripten toolchain · 0720fde7
      Ben Gamari authored and Marge Bot's avatar Marge Bot committed
      As noted in `Note [Don't pass --target to emscripten toolchain]`,
      emscripten's `emcc` is rather inconsistent with respect to its treatment
      of the `--target` flag. Avoid this by special-casing this toolchain
      in the `configure` script and `ghc-toolchain`.
      
      Fixes on aspect of #23744.
      0720fde7
    • Matthew Pickering's avatar
      configure: Check whether -no-pie works when the C compiler is used as a linker · 1f0de49a
      Matthew Pickering authored and Marge Bot's avatar Marge Bot committed
      `-no-pie` is a flag we pass when using the C compiler as a linker (see
      pieCCLDOpts in GHC.Driver.Session) so we should test whether the C
      compiler used as a linker supports the flag, rather than just the C
      compiler.
      1f0de49a
    • Matthew Pickering's avatar
      configure: Error when ghc-toolchain fails to compile · 9b2dfd21
      Matthew Pickering authored and Marge Bot's avatar Marge Bot committed
      This is a small QOL change as if you are working on ghc-toolchain and it
      fails to compile then configure will continue and can give you outdated
      results.
      9b2dfd21
    • Matthew Pickering's avatar
      Check for --target linker flag separately to C compiler · 89a0918d
      Matthew Pickering authored and Marge Bot's avatar Marge Bot committed
      There are situations where the C compiler doesn't accept `--target` but
      when used as a linker it does (but doesn't do anything most likely)
      
      In particular with old gcc toolchains, the C compiler doesn't support
      --target but when used as a linker it does.
      89a0918d
    • Matthew Pickering's avatar
      configure: AC_PATH_TARGET_TOOL for LD · d8da73cd
      Matthew Pickering authored and Marge Bot's avatar Marge Bot committed
      We want to make sure that LD is set to an absolute path in order to be
      consistent with the `LD=$(command -v ld)` call. The AC_PATH_TARGET_TOOL
      macro uses the absolute path rather than AC_CHECK_TARGET_TOOL which
      might use a relative path.
      d8da73cd
    • Matthew Pickering's avatar
      Add same LD hack to ghc-toolchain · 1a5bc0b5
      Matthew Pickering authored and Marge Bot's avatar Marge Bot committed
      In the ./configure script, if you pass the `LD` variable then this has
      the effect of stopping use searching for a linker and hence passing
      `-fuse-ld=...`.
      
      We want to emulate this logic in ghc-toolchain, if a use explicilty
      specifies `LD` variable then don't add `-fuse-ld=..` with the goal of
      making ./configure and ghc-toolchain agree on which flags to use when
      using the C compiler as a linker.
      
      This is quite unsavoury as we don't bake the choice of LD into the
      configuration anywhere but what's important for now is making
      ghc-toolchain and ./configure agree as much as possible.
      
      See #23857 for more discussion
      1a5bc0b5
  6. Oct 04, 2023
    • Ben Gamari's avatar
      configure: Fix #21712 again · f6b2751f
      Ben Gamari authored and Marge Bot's avatar Marge Bot committed
      This is a bit of a shot in the dark to fix #24033, which appears to be
      another instance of #21712. For some reason the ld-override logic
      *still* appears to be active on Darwin targets (or at least one).
      Consequently, on misconfigured systems we may choose a non-`ld64`
      linker.
      
      It's a bit unclear exactly what happened in #24033 but ultimately the
      check added for #21712 was not quite right, checking for the
      `ghc_host_os` (the value of which depends upon the bootstrap compiler)
      instead of the target platform. Fix this.
      
      Fixes #24033.
      f6b2751f
  7. Sep 30, 2023
  8. Sep 23, 2023
  9. Sep 19, 2023
  10. Sep 13, 2023
  11. Sep 08, 2023
  12. Aug 23, 2023
    • sheaf's avatar
      Apply shellcheck suggestion to SUBST_TOOLDIR · c82770f5
      sheaf authored and Marge Bot's avatar Marge Bot committed
      c82770f5
    • Matthew Pickering's avatar
      configure: Set WindresCmd directly and removed unused variables · 03fad42e
      Matthew Pickering authored and Marge Bot's avatar Marge Bot committed
      For some reason there was an indirection via the Windres variable before
      setting WindresCmd. That indirection led to #23855.
      
      I then also noticed that these other variables were just not used
      anywhere when trying to work out what the correct condition was for this
      bit of the configure script.
      03fad42e
    • Matthew Pickering's avatar
      Abstract windows toolchain setup · 9cac8f11
      Matthew Pickering authored and Marge Bot's avatar Marge Bot committed
      This commit splits up the windows toolchain setup logic into two
      functions.
      
      * FP_INSTALL_WINDOWS_TOOLCHAIN - deals with downloading the toolchain if
        it isn't already downloaded
      * FP_SETUP_WINDOWS_TOOLCHAIN - sets the environment variables to point
        to the correct place
      
      FP_SETUP_WINDOWS_TOOLCHAIN is abstracted from the location of the mingw
      toolchain and also the eventual location where we will install the
      toolchain in the installed bindist.
      
      This is the first step towards #23608
      9cac8f11
  13. Aug 16, 2023
  14. Aug 05, 2023
    • Luite Stegeman's avatar
      JS: Improve compatibility with recent emsdk · aa07402e
      Luite Stegeman authored
      The JavaScript code in libraries/base/jsbits/base.js had some
      hardcoded offsets for fields in structs, because we expected
      the layout of the data structures to remain unchanged. Emsdk
      3.1.42 changed the layout of the stat struct, breaking this
      assumption, and causing code in .hsc files accessing the
      stat struct to fail.
      
      This patch improves compatibility with recent emsdk by
      removing the assumption that data layouts stay unchanged:
      
          1. offsets of fields in structs used by JavaScript code are
             now computed by the configure script, so both the .js and
             .hsc files will automatically use the new layout if anything
             changes.
          2. the distrib/configure script checks that the emsdk version
             on a user's system is the same version that a bindist was
             booted with, to avoid data layout inconsistencies
      
      See #23641
      aa07402e
  15. Aug 04, 2023
Loading