================
@@ -351,6 +351,15 @@ const char *const Runtimes = R"(
EXTERN_C void __clang_Interpreter_SetValueNoAlloc(void *This, void *OutVal,
void *OpaqueType, ...);
)";
+const char *const OOPRuntimes = R"(
+ #include <stdio.h>
----------------
anutosh491 wrote:
Afk but quick update on phone (I could try this ... Just forward declare 2
symbols)
```
const char *const OOPRuntimes = R"(
extern "C" int setvbuf(void *stream, char *buf, int mode, unsigned size);
extern void *stdout;
extern void *stderr;
__attribute__((constructor))
static void __clang_repl_ioinit(void) {
setvbuf(stdout, NULL, 2 /* _IONBF */, 0);
setvbuf(stderr, NULL, 2 /* _IONBF */, 0);
}
)";
```
https://github.com/llvm/llvm-project/pull/166368
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits