From bfc9613943bec9e2a0619e3e1ed1e83d0e51b5f4 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 24 Aug 2015 15:35:32 +0200 Subject: Ignore unknown prerequisite types in C++ link rule --- build/cxx/compile.cxx | 1 - build/cxx/link.cxx | 12 ------------ 2 files changed, 13 deletions(-) (limited to 'build') diff --git a/build/cxx/compile.cxx b/build/cxx/compile.cxx index 65806ed..ce921d2 100644 --- a/build/cxx/compile.cxx +++ b/build/cxx/compile.cxx @@ -45,7 +45,6 @@ namespace build // @@ TODO: // // - check prerequisites: single source file - // - check prerequisites: the rest are headers (other ignorable?) // - if path already assigned, verify extension? // diff --git a/build/cxx/link.cxx b/build/cxx/link.cxx index 1b900c2..4023105 100644 --- a/build/cxx/link.cxx +++ b/build/cxx/link.cxx @@ -346,7 +346,6 @@ namespace build // @@ TODO: // - // - check prerequisites: object files, libraries // - if path already assigned, verify extension? // // @@ Q: @@ -393,17 +392,6 @@ namespace build { seen_lib = seen_lib || true; } - else if (p.is_a () || - p.is_a () || - p.is_a () || - p.is_a () || - p.is_a ()) - ; - else - { - level3 ([&]{trace << "unexpected prerequisite type " << p.type ();}); - return nullptr; - } } // We will only chain a C source if there is also a C++ source or we -- cgit v1.1