28 Jun 2025 |
emily | do we actually on Hydra? | 13:37:40 |
Alyssa Ross | No idea | 13:37:48 |
emily | In reply to @emilazy:matrix.org would it not be doable as just a flag to the rustc build otherwise? actually maybe not because of the Rust build forgets everything you tell it thing | 13:42:05 |
emily | so wrapper injection may be unavoidable :/ | 13:42:20 |
emily | at least until we do target configuration files | 13:42:37 |
Alyssa Ross | Or we do it via build systems | 13:44:51 |
Alyssa Ross | That would also be fine, right? | 13:45:00 |
dramforever | i need to check what we actually do for x86-32 | 13:46:58 |
dramforever | on the other hand, if we really don't do i686 rust then even if i check targetPlatform, dropping the check is zero rebuilds | 13:52:48 |
dramforever | * on the other hand, if we really don't do i686 rust in hydra then even if i check targetPlatform, dropping the check is zero rebuilds | 13:52:56 |
29 Jun 2025 |
| @c0d3h01:matrix.org joined the room. | 09:37:18 |
| @vedantmgoyal:beeper.com left the room. | 09:48:37 |
dramforever | sanity check, there's no reason here in cargoSetupHook https://github.com/NixOS/nixpkgs/blob/master/pkgs/build-support/rust/hooks/default.nix we only set crt-static if host != target, right? | 17:16:16 |
emily | I think Rust already knows for the host platform | 17:29:20 |
emily | or something | 17:29:22 |
dramforever | oooh that would makes sense | 17:30:21 |
dramforever | but then it also shouldn't hurt right? i want to refactor out the rustflags part into a function so we call it twice, once for host and once for target | 17:31:03 |
Alyssa Ross | Redacted or Malformed Event | 17:34:57 |
Alyssa Ross | if you set that to static you break proc macros | 17:35:01 |
Alyssa Ross | so you never want that | 17:35:03 |
dramforever | oof thanks for the catch | 17:35:40 |
Alyssa Ross | getting crt-static to work right took a huge amount of investigation and iteration | 17:36:23 |
Alyssa Ross | so I would be very careful changing anything about it | 17:36:39 |
dramforever | yeah i'm gonna preserve this | 17:39:55 |
dramforever | uh, idk if this is too cursed to worth supporting but is that one still broken if we cross from musl static to musl dynamic? | 18:10:12 |
Alyssa Ross | You can't build on static platforms in Nixpkgs, to my knowledge | 18:13:21 |
dramforever | good enough | 18:14:24 |
| cybergui joined the room. | 21:14:10 |
30 Jun 2025 |
| atagen joined the room. | 03:04:02 |
| apyh joined the room. | 16:51:26 |