Skip to content

Conversation

@willcl-ark
Copy link
Contributor

@willcl-ark willcl-ark commented Sep 26, 2025

Part of #34

  • Use clang20 on Darwin and gcc15 on Linux
  • Add depends devShell
  • Update CI:
    • Modernize runner images and core counts in nix.yml
    • Integrate new depends devShell in depends.yml
  • Fix depends compatibility that hardcodes g++ for native capnp and Qt builds
  • Clean up the flake.nix structure and remove unnecessary complexity
  • Maintain LSP support when using gcc by exporting CMAKE_EXPORT_COMPILE_COMMANDS=1

@willcl-ark willcl-ark force-pushed the gcc-15-native-env branch 3 times, most recently from 48e819a to e9bf887 Compare September 26, 2025 13:53
@josibake
Copy link
Contributor

IIRC, the issue with darwin is that they always use clang + libstdc++ (or something like that), despite calling it gcc?

+ tidy up derivation a little.

Instead of fighting to use a custom env with clang (and clang tools),
use `stdEnv` with an override to use gcc15.

Using a clang-based env for building depends is problematic as currently
various packages hardcode CXX as `g++`: https://github.com/bitcoin/bitcoin/blob/d8fe258cd6105704bf4427eda048dd7085ca516d/depends/hosts/linux.mk#L31
...which causes issues building native capnp and qt.

Set CMAKE_EXPORT_COMPILE_COMMANDS to continue outputting this file
useful for LSPs.
- Update cores + images in nix.yml
- Use new depends devShell in depends.yml
@willcl-ark
Copy link
Contributor Author

5th time's the charm, perhaps? :D

@willcl-ark willcl-ark changed the title Switch to native env + gcc15 Improve flake compiler setup and CI integration Sep 29, 2025
@willcl-ark
Copy link
Contributor Author

May close #31

@willcl-ark
Copy link
Contributor Author

Would be nice to get opinions from @josibake and anyone else using 😘

@willcl-ark willcl-ark closed this Nov 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants