MaskRay wrote: Yes, exposing `RegisterMCTargetOptionsFlags` to clang seems reasonable. Some research is needed to figure out the value precedence with multiple sources. https://github.com/llvm/llvm-project/pull/187583