aboutsummaryrefslogtreecommitdiff
path: root/build2/depdb.ixx
diff options
context:
space:
mode:
Diffstat (limited to 'build2/depdb.ixx')
-rw-r--r--build2/depdb.ixx7
1 files changed, 7 insertions, 0 deletions
diff --git a/build2/depdb.ixx b/build2/depdb.ixx
index 5ceba5a..80a2ea6 100644
--- a/build2/depdb.ixx
+++ b/build2/depdb.ixx
@@ -13,6 +13,13 @@ namespace build2
os_.~ofdstream ();
}
+ inline void depdb::
+ flush ()
+ {
+ if (state_ == state::write)
+ os_.flush ();
+ }
+
inline bool depdb::
mtime_check ()
{