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

Change variants separator #570

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

LuAbelt
Copy link

@LuAbelt LuAbelt commented Mar 11, 2025

Currently benchbuild uses a comma (,) to join multiple variants into a string. This can cause issues during compilation of some C/CPP projects when they set linker options.

The specific issue arises when using -Wl,rpath,<Path> to pass an rpath to the linker. As benchbuild automatically creates a new build folder for the project for compilation, the Path can contain commas if the project uses variants.

However, -Wl treats every comma as a separator for inputs to pass on to the linker. The result is a compilation error.

I think it would be a reasonable change to switch to a different separator. For now, I use the asterisk in my setup but maybe another separator is better suited (asterisks in names causes some weird behavior with with auto-completion in the command line)

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.

None yet

1 participant