anutosh491 wrote:
Hey @vgvassilev @Vipul-Cariappa ,
I guess we can start with something like this on the tool side.
Added simple logs at the start and the end of the file to confirm consistent
flushing.
So now we have the following (which is what in-process has too)
```
anutosh491@vv-nuc:/build/anutosh491/llvm-project/build/bin$ ./clang-repl
--oop-executor=$PWD/llvm-jitlink-executor
clang-repl> extern "C" int printf(const char *, ...);
clang-repl> printf("FLUSH_START");
FLUSH_STARTclang-repl> printf("\nFLUSH_OK\n");
FLUSH_OK
```
instead of the following on master
```
anutosh491@vv-nuc:/build/anutosh491/llvm-project/build/bin$ ./clang-repl
--oop-executor=$PWD/llvm-jitlink-executor
clang-repl> extern "C" int printf(const char *, ...);
clang-repl> printf("FLUSH_START");
clang-repl> printf("\nFLUSH_OK\n");
FLUSH_START
FLUSH_OK
```
The test passes as expected
```
anutosh491@vv-nuc:/build/anutosh491/llvm-project/build$ ./bin/llvm-lit -v
../clang/test/Interpreter/out-of-process.cpp
llvm-lit: /build/anutosh491/llvm-project/llvm/utils/lit/lit/llvm/config.py:531:
note: using clang: /build/anutosh491/llvm-project/build/bin/clang
llvm-lit: /build/anutosh491/llvm-project/llvm/utils/lit/lit/llvm/subst.py:126:
note: Did not find cir-opt in
/build/anutosh491/llvm-project/build/bin:/build/anutosh491/llvm-project/build/bin
-- Testing: 1 tests, 1 workers --
PASS: Clang :: Interpreter/out-of-process.cpp (1 of 1)
Testing Time: 1.31s
Total Discovered Tests: 1
Passed: 1 (100.00%)
```
https://github.com/llvm/llvm-project/pull/166368
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits