aboutsummaryrefslogtreecommitdiff
path: root/build2/cc/utility
diff options
context:
space:
mode:
Diffstat (limited to 'build2/cc/utility')
-rw-r--r--build2/cc/utility9
1 files changed, 7 insertions, 2 deletions
diff --git a/build2/cc/utility b/build2/cc/utility
index 050b645..bb7ed34 100644
--- a/build2/cc/utility
+++ b/build2/cc/utility
@@ -22,10 +22,10 @@ namespace build2
// Compile/link output type.
//
otype
- compile_type (target&);
+ compile_type (const target&);
otype
- link_type (target&);
+ link_type (const target&);
// Library link order.
//
@@ -41,8 +41,13 @@ namespace build2
// Given the link order return the library member (liba or libs) to link.
//
+ // Note that the const version assumes you have already called non-const.
+ //
target&
link_member (bin::lib&, lorder);
+
+ const target&
+ link_member (const bin::lib&, lorder);
}
}