Skip to content

Make the clangd helper target optional and tolerate a missing source - #2352

Open
MaxFreedomPollard wants to merge 1 commit into
NVIDIA:mainfrom
MaxFreedomPollard:clangd-helper-optional
Open

MaxFreedomPollard wants to merge 1 commit into
NVIDIA:mainfrom
MaxFreedomPollard:clangd-helper-optional

Conversation

@MaxFreedomPollard

Copy link
Copy Markdown
Contributor

Follow-up to #2341, for #2345.

include/._clangd_helper_file.cpp was compiled on every top-level configure, which a packaging build doesn't need, and a tree that has been through tar on macOS can lose the file entirely because the ._ prefix reads as AppleDouble metadata. That turned a missing IDE helper into a hard configure error.

This adds STDEXEC_BUILD_CLANGD_HELPER (default ON, so day-to-day builds don't change) and skips the target with a status message when the file isn't there. I left the filename alone; happy to rename it too if you'd rather go that way.

Checked by configuring with the option on, off, and with the file removed. The last case fails on main today with "Cannot find source file"; with this change it prints the status line and carries on. The helper still builds and runs with the option on.

include/._clangd_helper_file.cpp only exists for clangd, but it was compiled on
every top-level configure, and a tree that went through tar on macOS can lose
the file because the "._" prefix reads as AppleDouble metadata. Add
STDEXEC_BUILD_CLANGD_HELPER (default ON) and skip the target with a status
message when the file is missing.

Closes NVIDIA#2345.

Signed-off-by: Max Freedom Pollard <272618364+MaxFreedomPollard@users.noreply.github.com>
@copy-pr-bot

copy-pr-bot Bot commented Oct 20, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

This branch has not been deployed

No deployments
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.

1 participant