Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

platform: fix compatibility with ln(1) without relative support #706

Merged
merged 1 commit into from
Apr 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions platform/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,15 @@ fs_mod = import('fs')
ln_exe = find_program('ln', native: true)
platform_plugin_symlinks = []
foreach platform_plugin : platform_plugin_targets
inp_fp = platform_plugin.full_path()
inp_name = fs_mod.name(inp_fp)
rel_inp = fs_mod.name(fs_mod.parent(inp_fp)) / inp_name
platform_plugin_symlinks += [
custom_target(
'link-@0@'.format(fs_mod.name(platform_plugin.full_path()).underscorify()),
output: fs_mod.name(platform_plugin.full_path()),
'link-@0@'.format(inp_name.underscorify()),
output: inp_name,
input: platform_plugin,
command: [ln_exe, '-srnf', '@INPUT@', '@OUTPUT@'],
command: [ln_exe, '-sf', rel_inp, '@OUTPUT@'],
build_by_default: true,
)
]
Expand Down
Loading