labs/tidepool/src/lib
Ross Smyth be0d6bc0e1 refactor: remove target (#31)
WIP. Posting just to make sure people know this is something I'd like to do.

Context: https://matrix.to/#/!PvnunzXUk4Vm1CmKS4:auxolotl.org/$bOm6iaBpWbo-KRJgo7FUZdeFIv9StzRHxklbx7OQ23g?via=auxolotl.org&via=matrix.org&via=catgirl.cloud

Reasons:

1. Why should GCC inflict complication upon all of tidepool just because of its own architectural deficiencies?
2. Most other compilers are multi-target so it doesn't matter
2. Target is useless for 99.9% of packages and only leads to user confusion, especially since many compilers also call what would be host here "target".
3. Canadian-cross is not very well supported. GCC barely supports it, and is broken in many cases. Nixpkgs does not support it (regardless of what its API may imply) and no one has ever complained.

Plan:

1. Remove most target related things. No reason to have it.
2. Add configuration parameter on GCC that selects its target

What does this mean:

This basically moves target to be a GCC-specific artifact rather than an official parameter every package must endure the cognitive load of. This is because it is.  Nixpkgs plans on dumping target in the future as well because of this. Or at least making it an alias.

If you want to create a compiler with a different target, then override GCC to do so. No need to pervade all of tidepool just for GCC.

Co-authored-by: Victor Fuentes <vlinkz@snowflakeos.org>
Reviewed-on: #31
Reviewed-by: vlinkz <vlinkz@snowflakeos.org>
Co-authored-by: Ross Smyth <snix@treefroog.com>
Co-committed-by: Ross Smyth <snix@treefroog.com>
2025-10-07 03:46:52 +00:00
..
default.nix feat: add lib.fetchurl function (#27) 2025-10-01 05:20:06 +00:00
fetchurl.nix feat: add lib.fetchurl function (#27) 2025-10-01 05:20:06 +00:00
options.nix refactor(format): apply formatting 2024-07-07 15:03:48 -07:00
packages.nix refactor: remove target (#31) 2025-10-07 03:46:52 +00:00
platforms.nix refactor: remove target (#31) 2025-10-07 03:46:52 +00:00
systems.nix fix lib.systems.validate.compatible (#35) 2025-10-06 15:10:56 +00:00
types.nix refactor: remove target (#31) 2025-10-07 03:46:52 +00:00