From 5297516c913ed67648058ffc90637ad5e2d39411 Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Sun, 20 Sep 2015 19:51:16 +0300 Subject: Changed target naming algorithm to avoid Windows file name forbidden characters. --- build.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'build.py') diff --git a/build.py b/build.py index 6d6c013..e838b67 100644 --- a/build.py +++ b/build.py @@ -170,7 +170,13 @@ class BuildTarget(): self.validate_sources() def get_id(self): - return self.subproject + ':' + self.name + self.type_suffix() + # This ID must also be a valid file name on all OSs. + # It should also avoid shell metacharacters for obvious + # reasons. + base = self.name + self.type_suffix() + if self.subproject == '': + return base + return self.subproject + '@@' + base def check_unknown_kwargs(self, kwargs): # Override this method in derived classes that have more -- cgit v1.1