From 3d8f2b3779ae32a16627a0f09f1798224cdaf68f Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 31 Aug 2016 10:48:51 +0200 Subject: Improve mixed source (e.g., C and C++) building support --- build2/cc/target.cxx | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'build2/cc/target.cxx') diff --git a/build2/cc/target.cxx b/build2/cc/target.cxx index 7c2bb24..4961b35 100644 --- a/build2/cc/target.cxx +++ b/build2/cc/target.cxx @@ -10,6 +10,17 @@ namespace build2 { namespace cc { + const target_type cc::static_type + { + "cc", + &file::static_type, + nullptr, + nullptr, + nullptr, + &search_target, + false + }; + extern const char ext_var[] = "extension"; // VC 19 rejects constexpr. extern const char h_ext_def[] = "h"; @@ -28,7 +39,7 @@ namespace build2 const target_type c::static_type { "c", - &file::static_type, + &cc::static_type, &target_factory, &target_extension_var, nullptr, -- cgit v1.1