Skip to content

Commit

Permalink
nix/meson.build: Rename name_suffix -> executable_suffix
Browse files Browse the repository at this point in the history
  • Loading branch information
roberth committed Oct 13, 2024
1 parent bd1961b commit 3c59df4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/nix/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -212,14 +212,14 @@ nix_symlinks = [
'nix-store',
]

name_suffix = ''
executable_suffix = ''
if host_machine.system() == 'windows'
name_suffix = '.exe'
executable_suffix = '.exe'
endif

foreach linkname : nix_symlinks
install_symlink(
linkname + name_suffix,
linkname + executable_suffix,
# TODO(Qyriad): should these continue to be relative symlinks?
pointing_to : fs.name(this_exe),
install_dir : get_option('bindir'),
Expand All @@ -228,7 +228,7 @@ foreach linkname : nix_symlinks
)
t = custom_target(
command: ['ln', '-sf', fs.name(this_exe), '@OUTPUT@'],
output: linkname + name_suffix,
output: linkname + executable_suffix,
# TODO(Ericson2314): Don't do this once we have the `meson.override_find_program` working)
build_by_default: true
)
Expand All @@ -246,7 +246,7 @@ install_symlink(

custom_target(
command: ['ln', '-sf', fs.name(this_exe), '@OUTPUT@'],
output: 'build-remote' + name_suffix,
output: 'build-remote' + executable_suffix,
# TODO(Ericson2314): Don't do this once we have the `meson.override_find_program` working)
build_by_default: true
)
Expand Down

0 comments on commit 3c59df4

Please sign in to comment.