mirror of
https://github.com/NixOS/nix.git
synced 2025-12-22 17:01:08 +01:00
nix: don't require ln to build libstore
This commit is contained in:
parent
8e044f1ed0
commit
832b81761e
1 changed files with 26 additions and 22 deletions
|
|
@ -39,8 +39,11 @@ deps_public_maybe_subproject = [
|
|||
]
|
||||
subdir('nix-meson-build-support/subprojects')
|
||||
|
||||
can_link_symlink = false
|
||||
native_ln = find_program('ln', required : false, native : true)
|
||||
if native_ln.found()
|
||||
run_command(
|
||||
'ln',
|
||||
native_ln,
|
||||
'-s',
|
||||
meson.project_build_root() / '__nothing_link_target',
|
||||
meson.project_build_root() / '__nothing_symlink',
|
||||
|
|
@ -49,7 +52,7 @@ run_command(
|
|||
check : true,
|
||||
)
|
||||
can_link_symlink = run_command(
|
||||
'ln',
|
||||
native_ln,
|
||||
meson.project_build_root() / '__nothing_symlink',
|
||||
meson.project_build_root() / '__nothing_hardlink',
|
||||
check : false,
|
||||
|
|
@ -61,6 +64,7 @@ run_command(
|
|||
meson.project_build_root() / '__nothing_hardlink',
|
||||
check : true,
|
||||
)
|
||||
endif
|
||||
summary('can hardlink to symlink', can_link_symlink, bool_yn : true)
|
||||
configdata_priv.set('CAN_LINK_SYMLINK', can_link_symlink.to_int())
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue