From e5eedce2b8db0c141b141cdf6b4f7bc121e7c16a Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 2 Aug 2017 18:40:47 +0200 Subject: Fix VC miscompilation --- build2/cc/pkgconfig.cxx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/build2/cc/pkgconfig.cxx b/build2/cc/pkgconfig.cxx index f56e68c..ce72132 100644 --- a/build2/cc/pkgconfig.cxx +++ b/build2/cc/pkgconfig.cxx @@ -1,4 +1,4 @@ -// file : build2/cc/msvc.cxx -*- C++ -*- +// file : build2/cc/pkgconfig.cxx -*- C++ -*- // copyright : Copyright (c) 2014-2017 Code Synthesis Ltd // license : MIT; see accompanying LICENSE file @@ -548,13 +548,13 @@ namespace build2 // names). // target& mt ( - targets.insert_locked (*x_mod, - mp.directory (), - dir_path (), - mf.base ().string (), - mf.extension (), - true, // Implied. - trace).first); + targets.insert (*x_mod, + mp.directory (), + dir_path (), + mf.base ().string (), + mf.extension (), + true, // Implied. + trace).first); //@@ TODO: if target already exists, then setting its variable is // not MT-safe. Perhaps use prerequisite-specific value? -- cgit v1.1