Commit Graph

30 Commits

Author SHA1 Message Date
Aleksi Hannula
60cbef83e0 minimal-bootstrap.musl: Support x86_64-linux
We now build tinycc-musl through an intermediate stage.
BEFORE:
tinycc-mes (links to mes-libc) -> musl -> tinycc-musl (links to musl)
NOW:
tinycc-mes (links to mes-libc) -> musl-intermediate
  -> tinycc-musl-intermediate -> musl -> tinycc-musl

This fixes some issues with handling floating-point numbers:
certain float routines are not implemented are not implemented in mes-libc,
which would cause a miscompiled musl in the old approach.

Certain unnecessary musl patches are dropped. It is especially important to
remove the weak symbol patch, which in fact breaks the build.

tinycc-musl is upgraded to the latest "mob" version, with a couple bugfixes.
2025-12-13 11:27:13 +02:00
Aleksi Hannula
42d26b0984 minimal-bootstrap.tinycc-{bootstrappable,mes}: Support x86_64-linux
Because common.nix is shared across these packages, they are upgraded together.
This patch applies various x86_64-specific bugfixes to tinycc-bootstrappable
and upgrades tinycc-mes to the latest "mob" version.

The build scripts are updated to support 64-bit targets. The runtime library
"libtcc1.c" is changed to include va_list.c for tinycc-bootstrappable, which is
required to support variadic args on x86_64. On the other hand, we add alloca
support to libtcc1.c on tinycc-mes.
2025-12-13 11:27:13 +02:00
dish
6bcba60b3d minimal-bootstrap.musl11: Fix build with newer tcc 2025-12-10 23:22:30 -05:00
dish
f401ff6003 minimal-bootstrap.tinycc-bootstrappable: unstable-2023-04-20 -> unstable-2024-07-07
Updated to work with mes 0.27
2025-12-10 23:22:30 -05:00
Ihar Hrachyshka
567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00
Fernando Rodrigues
05580f4b44 treewide: switch instances of lib.teams.*.members to the new meta.teams attribute
Follow-up to #394797.

Signed-off-by: Fernando Rodrigues <alpha@sigmasquadron.net>
2025-04-25 22:20:17 -03:00
Sigmanificient
91d5ab3ae4 treewide: remove unused rec expressions 2025-03-14 05:15:05 +01:00
Silvan Mosberger
4f0dadbf38 treewide: format all inactive Nix files
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.

Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.

A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.

This commit was automatically created and can be verified using

    nix-build a08b3a4d19.tar.gz \
      --argstr baseRev b32a094368
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:26:33 +01:00
Emily Trau
25a264c6c4 minimal-bootstrap.tinycc-musl: unstable-2023-04-20 -> unstable-2023-07-10
Update to the last version of tinycc supported by bootstrappable-tcc.
This upgrade isn't strictly necessary, but I wanted to document that
this is the last successful revision
2023-09-26 22:20:35 -07:00
Emily Trau
0173d3bd90 minimal-bootstrap.tinycc-musl: 0.9.27 -> unstable-2023-04-20
latest tinycc is able to build gcc 4.6.4
2023-09-26 22:20:35 -07:00
Emily Trau
e25205899a minimal-bootstrap.tinycc-musl: add alloca to libtcc1 2023-09-26 22:20:34 -07:00
Emily Trau
d999a493b0 minimal-bootstrap.tinycc-musl: init at 0.9.27 2023-09-17 23:27:36 -07:00
Emily Trau
ea7533164c minimal-bootstrap.tinycc-*: static link by default 2023-05-24 11:58:37 +10:00
Emily Trau
8239e01b7a minimal-bootstrap.tinycc-mes: remove unused ln-boot dependency 2023-05-22 22:57:57 +10:00
Emily Trau
b405a6f7c7 maintainers: add minimal-bootstrap team 2023-05-18 09:15:40 +10:00
John Ericson
23f849f49d minimal-boostrap.mes: Separate compiler and libs
This matches tinycc, and what is generally done in Nixpkgs.
2023-05-14 19:27:15 -04:00
John Ericson
a89962887c minimal-bootstrap.mes: Parallelize 2023-05-14 18:59:32 -04:00
John Ericson
0c7631d319 minimal-bootstrap.tcc: Dedup, separate compiler from libs 2023-05-14 18:56:00 -04:00
Emily Trau
aa0a36bcd8 minimal-bootstrap.kaem: move runCommand into kaem 2023-05-12 01:43:40 +10:00
Emily Trau
1e88aa2594 minimal-bootstrap.mes: generate list of source files 2023-05-03 14:31:40 +10:00
Emily Trau
f519f097e4 minimal-libc.tinycc-mes: refactor into common.nix 2023-05-02 10:18:35 +10:00
Emily Trau
1b065103f5 minimal-bootstrap.mes: split out mes-libc package 2023-05-02 10:18:34 +10:00
Emily Trau
ae7bbb0e4d minimal-bootstrap.mes: major rewrite for readability 2023-05-02 10:18:34 +10:00
Emily Trau
a4caff6ea4 minimal-bootstrap: remove confusing fetchtarball abstraction 2023-05-02 10:18:34 +10:00
Emily Trau
59e11ad4e4 minimal-bootstrap: add meta attributes 2023-05-02 10:18:33 +10:00
Emily Trau
dc11b48d10 minimal-bootstrap.tinycc: refactor mes-libc into separate file 2023-05-02 10:18:33 +10:00
Emily Trau
5d423c3ac0 minimal-bootstrap: add source attribution 2023-05-02 10:18:33 +10:00
Emily Trau
71dcd60557 minimal-bootstrap: remove most uses of builtins.fetchTarball 2023-05-02 10:18:32 +10:00
Emily Trau
c8ecd8ed57 minimal-bootstrap.stage0-posix: replace mkKaemDerivation with runCommand 2023-05-02 10:18:32 +10:00
Emily Trau
d0594d2f42 minimal-bootstrap: rename from trusting-trust 2023-05-02 10:18:32 +10:00