aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-08-02 18:40:47 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-08-02 18:40:47 +0200
commite5eedce2b8db0c141b141cdf6b4f7bc121e7c16a (patch)
tree34d6fdd53f38b042f87f075b4dff3e342edd7544
parent083743602a998c7618f65fc214bdbc1ed1915e55 (diff)
Fix VC miscompilation
-rw-r--r--build2/cc/pkgconfig.cxx16
1 files 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?