blob: b09b67dd1f108386e36eb25a128576e69695ca71 [file] [log] [blame]
brians343bc112013-02-10 01:53:46 +00001diff -rupN before/pylib/gyp/input.py after/pylib/gyp/input.py
2--- before/pylib/gyp/input.py 2012-11-20 16:38:09.394784918 -0800
3+++ after/pylib/gyp/input.py 2012-11-20 16:39:10.527105964 -0800
Brian Silvermana67ecc72013-09-28 13:53:53 -07004@@ -2412,17 +2412,6 @@ def ValidateSourcesInTarget(target, targ
brians343bc112013-02-10 01:53:46 +00005 basename = os.path.basename(name) # Don't include extension.
6 basenames.setdefault(basename, []).append(source)
7
8- error = ''
9- for basename, files in basenames.iteritems():
10- if len(files) > 1:
11- error += ' %s: %s\n' % (basename, ' '.join(files))
12-
13- if error:
Brian Silvermana67ecc72013-09-28 13:53:53 -070014- print('static library %s has several files with the same basename:\n' %
15- target + error + 'Some build systems, e.g. MSVC08, '
16- 'cannot handle that.')
17- raise GypError('Duplicate basenames in sources section, see list above')
brians343bc112013-02-10 01:53:46 +000018-
19
20 def ValidateRulesInTarget(target, target_dict, extra_sources_for_rules):
21 """Ensures that the rules sections in target_dict are valid and consistent,