diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2022-06-24 06:11:04 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2022-06-24 06:11:04 +0200 |
commit | 658e0b3dbf496f6489ee6a5054f5609a7fa9ce5a (patch) | |
tree | 0f7f7fd1de45175d77def83fd789adfd6566b99b /libbuild2/cc/compile-rule.cxx | |
parent | 7c57f2a85aa520db784a36ced65ec5c832dbfbc8 (diff) |
Add ability to control -I translation in $x.lib_poptions()
Diffstat (limited to 'libbuild2/cc/compile-rule.cxx')
-rw-r--r-- | libbuild2/cc/compile-rule.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libbuild2/cc/compile-rule.cxx b/libbuild2/cc/compile-rule.cxx index 7059f15..1b8a5a8 100644 --- a/libbuild2/cc/compile-rule.cxx +++ b/libbuild2/cc/compile-rule.cxx @@ -690,12 +690,12 @@ namespace build2 const scope& bs, action a, const file& l, bool la, linfo li, - bool common) const + bool common, + bool original) const { - // @@ Is this a good idea? We don't know which tool will be using - // these... - // - const scope* is (isystem (*this) ? effective_iscope (bs) : nullptr); + const scope* is (!original && isystem (*this) + ? effective_iscope (bs) + : nullptr); append_library_options (ls, args, bs, is, a, l, la, li, common, nullptr); } |