MaskRay added a comment. If you want to do this proper, you may look at how -fbinutils-version= was implemented. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D80392/new/ https://reviews.llvm.org/D80392