[llvm] [orc_rt] adding a very simple CLI flags parser in (PR #172987)
Jared Wyles via llvm-commits
llvm-commits at lists.llvm.org
Sun Dec 21 18:56:58 PST 2025
================
@@ -10,6 +10,15 @@
//
//===----------------------------------------------------------------------===//
+#include "orc-rt/CommandLine.h"
+
int main(int argc, char *argv[]) {
+ std::string Host;
+ CommandLineParser CL;
+ auto Err = CL.addValue("host", "set host to listen on",
+ std::string("localhost"), Host)
+ .parse(argc, argv);
+ if (Err) {
+ }
----------------
jaredwy wrote:
Yup. Will remove when the patch is ready to go, just useful at the moment for testing.debugging :)
https://github.com/llvm/llvm-project/pull/172987
More information about the llvm-commits
mailing list