From c2001eb367b9b82e26689cad6f1f74f46c72b904 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 27 Apr 2017 08:29:52 +0200 Subject: Pass target to prerequisite search --- build2/bin/rule.cxx | 4 ++-- build2/bin/target.cxx | 16 ++++++++-------- 2 files changed, 10 insertions(+), 10 deletions(-) (limited to 'build2/bin') diff --git a/build2/bin/rule.cxx b/build2/bin/rule.cxx index 3ea8e75..fd1526e 100644 --- a/build2/bin/rule.cxx +++ b/build2/bin/rule.cxx @@ -53,8 +53,8 @@ namespace build2 fail << "unknown library type: " << type << info << "'static', 'shared', or 'both' expected"; - t.a = a ? &search (t.dir, t.out, t.name) : nullptr; - t.s = s ? &search (t.dir, t.out, t.name) : nullptr; + t.a = a ? &search (t, t.dir, t.out, t.name) : nullptr; + t.s = s ? &search (t, t.dir, t.out, t.name) : nullptr; match_result mr (true); diff --git a/build2/bin/target.cxx b/build2/bin/target.cxx index 2be5686..dc691d6 100644 --- a/build2/bin/target.cxx +++ b/build2/bin/target.cxx @@ -43,7 +43,7 @@ namespace build2 &target_extension_var, &target_pattern_var, nullptr, - &search_target, // Note: not _file(); don't look for an existing file. + &target_search, // Note: not _file(); don't look for an existing file. false }; @@ -55,7 +55,7 @@ namespace build2 &target_extension_var, &target_pattern_var, nullptr, - &search_target, // Note: not _file(); don't look for an existing file. + &target_search, // Note: not _file(); don't look for an existing file. false }; @@ -67,7 +67,7 @@ namespace build2 &target_extension_var, &target_pattern_var, nullptr, - &search_target, // Note: not _file(); don't look for an existing file. + &target_search, // Note: not _file(); don't look for an existing file. false }; @@ -107,7 +107,7 @@ namespace build2 nullptr, nullptr, nullptr, - &search_target, + &target_search, false }; @@ -145,7 +145,7 @@ namespace build2 &target_extension_var, &target_pattern_var, nullptr, - &search_file, + &file_search, false }; @@ -157,7 +157,7 @@ namespace build2 &target_extension_var, &target_pattern_var, nullptr, - &search_file, + &file_search, false }; @@ -206,7 +206,7 @@ namespace build2 nullptr, nullptr, nullptr, - &search_target, + &target_search, false }; @@ -220,7 +220,7 @@ namespace build2 &target_extension_var, &target_pattern_var, nullptr, - &search_file, + &file_search, false }; } -- cgit v1.1