diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-07-08 17:07:27 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-07-08 17:07:27 +0200 |
commit | c865883666028da1982b082a0754cc4a261afd27 (patch) | |
tree | 1ea2b0e188366f0b04f3eaacddbfd62ef32ab980 /build2/cxx | |
parent | 86576cdd3c8d959ffe93f49b7744a99164f172ee (diff) |
Add dependency on fsdir{} in alias rules
This makes sure that a directory with only dir{} target gets cleaned up.
Diffstat (limited to 'build2/cxx')
-rw-r--r-- | build2/cxx/compile.cxx | 2 | ||||
-rw-r--r-- | build2/cxx/link.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/build2/cxx/compile.cxx b/build2/cxx/compile.cxx index e0fabb4..25416e8 100644 --- a/build2/cxx/compile.cxx +++ b/build2/cxx/compile.cxx @@ -82,7 +82,7 @@ namespace build2 // Inject dependency on the output directory. // - fsdir* dir (inject_parent_fsdir (a, t)); + fsdir* dir (inject_fsdir (a, t)); // Search and match all the existing prerequisites. The injection // code (below) takes care of the ones it is adding. diff --git a/build2/cxx/link.cxx b/build2/cxx/link.cxx index 1818be6..82d98a1 100644 --- a/build2/cxx/link.cxx +++ b/build2/cxx/link.cxx @@ -694,7 +694,7 @@ namespace build2 // Inject dependency on the output directory. // - inject_parent_fsdir (a, t); + inject_fsdir (a, t); optional<dir_paths> lib_paths; // Extract lazily. |