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/init.cxx | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'build2/test/init.cxx') diff --git a/build2/test/init.cxx b/build2/test/init.cxx index 725d557..1f5a3ae 100644 --- a/build2/test/init.cxx +++ b/build2/test/init.cxx @@ -15,6 +15,8 @@ #include #include +#include // script::regex::init() + using namespace std; using namespace butl; @@ -217,5 +219,13 @@ namespace build2 return true; } + + module_functions + build2_test_load () + { + script::regex::init (); + + return module_functions {&boot, &init}; + } } } -- cgit v1.1