From c23346c4cda9e0c2318c302dc6014d3fef53a6d3 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 20 Feb 2015 09:29:56 +0200 Subject: Rework extension handling logic We no longer support hxx{vector.}. Rather, the target type can decide, e.g., based on a config variable, whether to append an extension. Also, in the future we may support a syntax to specify that this is a complete name, e.g., hxx{'vector'}. --- build/cxx/rule.cxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'build/cxx') diff --git a/build/cxx/rule.cxx b/build/cxx/rule.cxx index 8d2c0b2..26ad213 100644 --- a/build/cxx/rule.cxx +++ b/build/cxx/rule.cxx @@ -208,6 +208,10 @@ namespace build // extension. Here we can assume the name part is a valid // filesystem name. // + // Note that if the file has no extension, we record an empty + // extension rather than NULL (which would signify that the + // extension needs to be added). + // path d (file.directory ()); string n (file.leaf ().base ().string ()); const char* es (file.extension ()); -- cgit v1.1