aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/cc
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2022-12-09 07:55:46 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2022-12-09 07:55:46 +0200
commita950666a982d92612cdf418b77b2b82e93e7d99c (patch)
tree8b31fa9c546aaf9422815c1c9463e9cf9df74bd0 /libbuild2/cc
parent138ca40c2187ab4d1f11747555d9878cf3422496 (diff)
Normalize target's out directory in cc::insert_library()
Diffstat (limited to 'libbuild2/cc')
-rw-r--r--libbuild2/cc/common.txx15
1 files 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<mtime_target> ()};