diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2018-11-01 13:00:16 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2018-11-01 13:00:16 +0200 |
commit | eacf7f7ccd40a56d1fe761d3d30ced6c6acd58da (patch) | |
tree | 841a87d57720704654e8e8fa94cecd05c17b6cfa /build2/cc/link-rule.cxx | |
parent | 8ba507252cb932023d16e5d4dfef267c039feb78 (diff) |
Add support for rule-specific variables, use to fix cc.type data race
Diffstat (limited to 'build2/cc/link-rule.cxx')
-rw-r--r-- | build2/cc/link-rule.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/build2/cc/link-rule.cxx b/build2/cc/link-rule.cxx index 230fc6f..ba6a22d 100644 --- a/build2/cc/link-rule.cxx +++ b/build2/cc/link-rule.cxx @@ -356,10 +356,10 @@ namespace build2 otype ot (lt.type); linfo li (link_info (bs, ot)); - // Set the library type (C, C++, etc). + // Set the library type (C, C++, etc) as rule-specific variable. // if (lt.library ()) - t.vars.assign (c_type) = string (x); + t.state[a].assign (c_type) = string (x); bool binless (lt.library ()); // Binary-less until proven otherwise. |