aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/cc/functions.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'libbuild2/cc/functions.cxx')
-rw-r--r--libbuild2/cc/functions.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/libbuild2/cc/functions.cxx b/libbuild2/cc/functions.cxx
index 9c06f87..abfd32f 100644
--- a/libbuild2/cc/functions.cxx
+++ b/libbuild2/cc/functions.cxx
@@ -51,7 +51,7 @@ namespace build2
// recipe with dynamic dependency extraction (depdb-dyndep) executes its
// depdb preamble during match (after matching all the prerequisites).
//
- if (bs->ctx.phase != run_phase::match ||
+ if (bs->ctx.phase != run_phase::match &&
bs->ctx.phase != run_phase::execute)
fail << f.name << " can only be called during execution";
@@ -107,7 +107,7 @@ namespace build2
if (rs == nullptr)
fail << f.name << " called out of project";
- if (bs->ctx.phase != run_phase::match || // See above.
+ if (bs->ctx.phase != run_phase::match && // See above.
bs->ctx.phase != run_phase::execute)
fail << f.name << " can only be called during execution";