1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-24 11:19:35 +01:00

src/nix: Make meson compile <cmdlet> valid

Without this dependency, e.g. `meson compile nix-instantiate`
would produce a broken symlink, or the `nix` it points to may be
stale.
With the dependency in place, `meson compile nix-instantiate`
produces a reliable outcome.
This commit is contained in:
Robert Hensing 2025-11-22 20:17:50 +01:00
parent 8cdeab8f2e
commit 67f6a24171

View file

@ -229,6 +229,7 @@ foreach linkname : nix_symlinks
env : {'MSYS' : 'winsymlinks:lnk'}, env : {'MSYS' : 'winsymlinks:lnk'},
# TODO(Ericson2314): Don't do this once we have the `meson.override_find_program` working) # TODO(Ericson2314): Don't do this once we have the `meson.override_find_program` working)
build_by_default : true, build_by_default : true,
depends : this_exe,
) )
# TODO(Ericson3214): Doesn't yet work # TODO(Ericson3214): Doesn't yet work
#meson.override_find_program(linkname, t) #meson.override_find_program(linkname, t)
@ -250,6 +251,7 @@ custom_target(
env : {'MSYS' : 'winsymlinks:lnk'}, env : {'MSYS' : 'winsymlinks:lnk'},
# TODO(Ericson2314): Don't do this once we have the `meson.override_find_program` working) # TODO(Ericson2314): Don't do this once we have the `meson.override_find_program` working)
build_by_default : true, build_by_default : true,
depends : this_exe,
) )
# TODO(Ericson3214): Doesn't yet work # TODO(Ericson3214): Doesn't yet work
#meson.override_find_program(linkname, t) #meson.override_find_program(linkname, t)