forked from OSchip/llvm-project
[Cygwin] Work around to flush stdout in a thread, or stdout in threads won't be flushed at exit.
llvm-svn: 154254
This commit is contained in:
parent
7a2f433367
commit
a7d49883bb
|
@ -97,6 +97,9 @@ typedef struct thread_info {
|
|||
void thread_runner(void *client_data_v) {
|
||||
thread_info *client_data = client_data_v;
|
||||
client_data->result = carcmttest_main(client_data->argc, client_data->argv);
|
||||
#ifdef __CYGWIN__
|
||||
fflush(stdout); /* stdout is not flushed on Cygwin. */
|
||||
#endif
|
||||
}
|
||||
|
||||
int main(int argc, const char **argv) {
|
||||
|
|
|
@ -2781,6 +2781,9 @@ typedef struct thread_info {
|
|||
void thread_runner(void *client_data_v) {
|
||||
thread_info *client_data = client_data_v;
|
||||
client_data->result = cindextest_main(client_data->argc, client_data->argv);
|
||||
#ifdef __CYGWIN__
|
||||
fflush(stdout); /* stdout is not flushed on Cygwin. */
|
||||
#endif
|
||||
}
|
||||
|
||||
int main(int argc, const char **argv) {
|
||||
|
|
Loading…
Reference in New Issue