From b37f1aa6398065be806e6605a023189685669885 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 15 Feb 2017 03:55:15 +0200 Subject: Implement parallel match --- build2/diagnostics.cxx | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'build2/diagnostics.cxx') diff --git a/build2/diagnostics.cxx b/build2/diagnostics.cxx index 26fd9f0..7b312a1 100644 --- a/build2/diagnostics.cxx +++ b/build2/diagnostics.cxx @@ -44,6 +44,15 @@ namespace build2 // uint16_t verb = 0; // Keep disabled until set from options. + // Diagnostics stack. + // +#ifdef __cpp_thread_local + thread_local +#else + __thread +#endif + const diag_frame* diag_frame::stack; + // Diagnostic facility, project specifics. // @@ -96,7 +105,7 @@ namespace build2 const basic_mark error ("error"); const basic_mark warn ("warning"); const basic_mark info ("info"); - const basic_mark text (nullptr); + const basic_mark text (nullptr, nullptr); // No type/frame. const fail_mark fail ("error"); const fail_end endf; } -- cgit v1.1