From a950666a982d92612cdf418b77b2b82e93e7d99c Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 9 Dec 2022 07:55:46 +0200 Subject: Normalize target's out directory in cc::insert_library() --- libbuild2/cc/common.txx | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/libbuild2/cc/common.txx b/libbuild2/cc/common.txx index b21bbb1..8c80686 100644 --- a/libbuild2/cc/common.txx +++ b/libbuild2/cc/common.txx @@ -19,13 +19,14 @@ namespace build2 bool exist, tracer& trace) { - auto p (ctx.targets.insert_locked (T::static_type, - move (dir), - dir_path (out.effect_string ()), - name, - move (ext), - target_decl::implied, - trace)); + auto p (ctx.targets.insert_locked ( + T::static_type, + move (dir), + dir_path (out.effect_string ()).normalize (), + name, + move (ext), + target_decl::implied, + trace)); if (exist && p.second) throw non_existent_library {p.first.template as ()}; -- cgit v1.1