Per-target feature enablement? #25378
Replies: 2 comments 1 reply
|
Friendly ping... any insight anyone? |
0 replies
|
I think your analysis is mostly there. I think you would want to model it like this
From there, there are several ways for you to change the build configuration:
|
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hi all,
My first time posting (please be gentle :-) )
I've been searching for this for a while (and querying various LLMs), hopefully you can point me in the right direction.
In our project, we have a number of code-generation tools that need to be compiled for host execution (so far so good). These tools analyze C++ files (e.g. examine their AST) as part of their work; they leverage the clang libraries that provide this functionality. We ship pre-generated source code to our customers, but at least one of these tools needs to run on customer premises with the customer-supplied compilers/libraries.
Complications arise from this:
libc++.aandlibc++abi.aare linked instead of their dynamic counterpartsI've been trying to figure out how best to express this in bazel/starlark. Here is (roughly) my thought process:
coptsandlinkopts; it seems (to me) it would only work for options that are common across all possible compiler families/versions?cc_binary; you end up exposing compiler family/version selection into config settings or elsewhere in order to achieve thisrules_ccimplementation; curating a(n augmented) clone of this would be a maintainability nightmare (we'd much rather leverage the great work done there by others)cc_binary)? I seem to recall reading somewhere that this hierarchical rule mechanism is not available for builtin rules (yet?)I'd appreciate your input on:
Thanks for your time and attention.
EDIT: fixed a few typos.
All reactions