Closed RCoeurjoly closed 7 months ago
This PR would fix #2011.
No it wouldn't, because of https://github.com/YosysHQ/yosys/pull/4233/files#diff-76ed074a9305c04054cdebb9e9aad2d818052b07091de1f20cad0bbac34ffb52L241.
(There are also other problems in #2011, such as the misuse of LDFLAGS
, but even if we're talking about CXX
alone, there are more branches of the Makefile that remain broken.)
Hah, I happen to have written that patch quite some time ago.
I would also suggest splitting the PR in two: one patching the Makefile, and another introducing Nix files. The former shouldn't be too controversial nowadays (I hope) while the latter will definitely need a discussion on the next dev meeting, mainly because it should be verified on CI that the flake still builds, and it's unclear who's going to be responsible for that in YosysHQ.
Sounds reasonable. Let me close this PR and open two separate PR.
To build yosys in nixpkgs (https://github.com/NixOS/nixpkgs/blob/nixos-23.11/pkgs/development/compilers/yosys/default.nix), a patch is applied to Makefile. I applied that same patch to the Makefile and was surprised that all the pipelines pass (https://github.com/RCoeurjoly/yosys/actions).
This PR would fix https://github.com/YosysHQ/yosys/issues/2011.