Skip to content

Conversation

@devajithvs
Copy link
Contributor

@devajithvs devajithvs commented Jan 15, 2026

This Pull request:

This is a draft PR to test if it is possible to use optparse in rootcling:

  • barecling subcommand makes this slightly complicated, but not sure if it is worth adding subcommand feature to optparse.
  • Could also potentially replace OptionParser.h too, haven't looked into this.
  • TODO: Move from global variables for opt to a RootClingConfig object (not doing this keeps the diff minimal for now).

This would potentially remove issues like

CommandLine Error: Option 'W' registered more than once!

caused by llvm::cl registering the same options multiple times ROOT is linked against a shared libLLVM.

Changes or fixes:

Checklist:

  • tested changes locally
  • updated the docs (if necessary)

This PR fixes #

This would potentially remove issues like

```
CommandLine Error: Option 'W' registered more than once!
```

caused by `llvm::cl` registering the same options multiple times
when ROOT is linked against a shared `libLLVM`.
@devajithvs devajithvs self-assigned this Jan 15, 2026
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