Skip to content

Commit 506242e

Browse files
Fixed executable output and reduced output buffer size
1 parent 36984d5 commit 506242e

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

Src/runcpp2/runcpp2.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,27 +68,27 @@ namespace
6868
do
6969
{
7070
uint32_t byteRead = 0;
71-
const int bufferSize = 4096;
71+
const int bufferSize = 32;
7272
char output[bufferSize] = {0};
7373

7474
result = System2ReadFromOutput( &runCommandInfo,
7575
output,
76-
bufferSize,
76+
bufferSize - 1,
7777
&byteRead);
7878

7979
output[byteRead] = '\0';
8080

8181
//Log the output and continue fetching output
8282
if(result == SYSTEM2_RESULT_READ_NOT_FINISHED)
8383
{
84-
ssLOG_SIMPLE(output);
84+
std::cout << output << std::flush;
8585
continue;
8686
}
8787

8888
//If we have finished reading the output, check if the command has finished
8989
if(result == SYSTEM2_RESULT_SUCCESS)
9090
{
91-
ssLOG_SIMPLE(output);
91+
std::cout << output << std::flush;
9292

9393
result = System2GetCommandReturnValueAsync(&runCommandInfo, &statusCode);
9494

TODO.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
- Rename compiler profiles to user config
2+
- Loading dynamic library instead of executable
3+
- Output compile_command.json
14
- Allow script info as standalone yaml file
25
- Copy shared libraries to be next to the executable
36
- Commandline options

0 commit comments

Comments
 (0)