From 0dee00f28e623830e816c4002c8004c86055df85 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 1 Apr 2015 11:08:13 +0200 Subject: Implement initial C++ configuration support --- build/config/operation.cxx | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'build/config') diff --git a/build/config/operation.cxx b/build/config/operation.cxx index baafc97..c6a9444 100644 --- a/build/config/operation.cxx +++ b/build/config/operation.cxx @@ -133,10 +133,9 @@ namespace build { mkdir (out_root); mkdir (out_root / build_dir); + mkdir (out_root / bootstrap_dir); } - mkdir (out_root / bootstrap_dir); - // We distinguish between a complete configure and operation- // specific. // @@ -223,14 +222,14 @@ namespace build level4 ([&]{trace << "completely disfiguring " << out_root;}); rmfile (out_root / config_file); - rmfile (out_root / src_root_file); - - // Clean up the directories. - // - rmdir (out_root / bootstrap_dir); if (out_root != src_root) { + rmfile (out_root / src_root_file); + + // Clean up the directories. + // + rmdir (out_root / bootstrap_dir); rmdir (out_root / build_dir); if (rmdir (out_root) == rmdir_status::not_empty) -- cgit v1.1