aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-07-22 22:48:02 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-07-22 22:48:02 +0200
commita4d5263f912ccc1397b8f5fc5278f22d2b1c8205 (patch)
tree250e4d059e737468e691bc1ffe241680e483e07b
parent18697575ae7f8cf3b0ec978b09ec4e5fb7a53b21 (diff)
Increase target data pad size
-rw-r--r--build2/cc/compile.cxx4
-rw-r--r--build2/target.hxx2
2 files changed, 3 insertions, 3 deletions
diff --git a/build2/cc/compile.cxx b/build2/cc/compile.cxx
index 2153205..6263120 100644
--- a/build2/cc/compile.cxx
+++ b/build2/cc/compile.cxx
@@ -129,11 +129,11 @@ namespace build2
translation_type type;
preprocessed pp = preprocessed::none;
+ bool touch = false; // Target needs to be touched.
+ timestamp mt = timestamp_unknown; // Target timestamp.
prerequisite_member src;
auto_rmfile psrc; // Preprocessed source, if any.
path dd; // Dependency database path.
- timestamp mt = timestamp_unknown; // Target timestamp.
- bool touch = false; // Target needs to be touched.
module_positions mods = {0, 0, 0};
};
diff --git a/build2/target.hxx b/build2/target.hxx
index 906d92d..b5863dc 100644
--- a/build2/target.hxx
+++ b/build2/target.hxx
@@ -576,7 +576,7 @@ namespace build2
//
// Note that the recipe may modify the data.
//
- static constexpr size_t data_size = sizeof (string) * 10;
+ static constexpr size_t data_size = sizeof (string) * 12;
mutable std::aligned_storage<data_size>::type data_pad;
mutable void (*data_dtor) (void*) = nullptr;