build: make macOS build Clang only #30206

issue fanquake openend this issue on May 30, 2024
  1. fanquake commented at 3:58 pm on May 30, 2024: member

    It should be possible to have a macOS (release) build environment that only uses Clang, and has no GCC toolchain installed.

    Currently that’s not possible, because Qt still reaches out to g++. This can be demo’d by Guix building this branch: https://github.com/fanquake/bitcoin/tree/guix_macos_no_gcc, which removes the gcc-toolchain package, and associated build infra from the macOS env. It will fail with:

    0Configuring qt...
    1Creating qmake...
    2make[1]: Entering directory '/bitcoin/depends/work/build/arm64-apple-darwin/qt/5.15.13-35fa99bb44b/qtbase/qmake'
    3make[1]: g++: No such file or directory
    4make[1]: *** [Makefile:250: main.o] Error 127
    

    TODO:

    • Make Qt work properly with just Clang.
  2. fanquake added the label Build system on May 30, 2024


fanquake

Labels
Build system


github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-11-23 09:12 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me