Skip to content

flm wrapper: support running through a symlink (#912) - #948

Merged
zaneni6 merged 1 commit into
mainfrom
fix/flm-symlink-912
Nov 4, 2026
Merged

zaneni6 merged 1 commit into
mainfrom
fix/flm-symlink-912

Conversation

@tawei-amd

Copy link
Copy Markdown
Collaborator

Fixes #912.

src/flm-wrapper.sh.in derived SCRIPT_DIR from BASH_SOURCE[0] without resolving symlinks, so a symlink such as ~/.local/bin/flm -> ../fastflowlm/flm made it look for flm-real and lib/ next to the symlink.

Now SCRIPT_DIR uses readlink -f first.

Tested with a mock install tree: direct call, absolute/relative symlink, and a symlink-to-symlink all reach flm-real. Not tested with a real CI-built package.

🤖 Generated with Claude Code

Fixes #912: running flm through a symlink (e.g. ~/.local/bin/flm) looked for
flm-real and lib/ next to the symlink.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@tawei-amd
tawei-amd requested a review from zaneni6 November 4, 2026 18:15
@tawei-amd
tawei-amd marked this pull request as ready for review November 4, 2026 21:05
@zaneni6
zaneni6 merged commit a26de61 into main Nov 4, 2026
38 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature] [Linux]: Support symlink for "flm" bash script

2 participants