diff options
-rw-r--r-- | build2/dist/module.cxx | 8 | ||||
-rw-r--r-- | build2/install/module.cxx | 2 |
2 files changed, 4 insertions, 6 deletions
diff --git a/build2/dist/module.cxx b/build2/dist/module.cxx index 2a7ba92..5ae05a4 100644 --- a/build2/dist/module.cxx +++ b/build2/dist/module.cxx @@ -97,7 +97,7 @@ namespace build2 { const value& cv (config::optional (r, "config.dist.root")); - if (cv && !cv.empty ()) + if (cv && !cv.empty ()) // @@ BC LT [null] v = cast<dir_path> (cv); // Strip abs_dir_path. } } @@ -112,11 +112,9 @@ namespace build2 const value& cv ( config::required (r, "config.dist.cmd", path ("install")).first); - if (cv && !cv.empty ()) + if (cv && !cv.empty ()) // @@ BC LT [null] v = cv; } - else - v = path ("install"); } // dist.archives @@ -128,7 +126,7 @@ namespace build2 { const value& cv (config::optional (r, "config.dist.archives")); - if (cv && !cv.empty ()) + if (cv && !cv.empty ()) // @@ BC LT [null] v = cv; } } diff --git a/build2/install/module.cxx b/build2/install/module.cxx index 2a4d164..ddc6640 100644 --- a/build2/install/module.cxx +++ b/build2/install/module.cxx @@ -66,7 +66,7 @@ namespace build2 if (spec) { - if (*cv && !cv->empty ()) + if (*cv && !cv->empty ()) // @@ BC LT [null] v = cast<T> (*cv); // Strip CT to T. } else |