aboutsummaryrefslogtreecommitdiff
path: root/build/cxx/rule.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'build/cxx/rule.cxx')
-rw-r--r--build/cxx/rule.cxx4
1 files changed, 4 insertions, 0 deletions
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 ());