From f52b47eea4c5de553d202669f91e6f4f14668592 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Mon, 1 Jul 2019 23:35:27 +0300 Subject: Add workaround for data race in libstdc++'s locale(const locale&, Facet*) constructor --- build2/test/script/regex.hxx | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'build2/test/script/regex.hxx') diff --git a/build2/test/script/regex.hxx b/build2/test/script/regex.hxx index 500c21b..33a4cba 100644 --- a/build2/test/script/regex.hxx +++ b/build2/test/script/regex.hxx @@ -344,6 +344,13 @@ namespace build2 // line_char_locale (); }; + + // Initialize the testscript regex global state. Should be called once + // prior to creating objects of types from this namespace. Note: not + // thread-safe. + // + void + init (); } } } -- cgit v1.1