partition.py: duplicate chunks are duplicate signatures, not names (overloads)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
bcb263f2cc
commit
cd94a2185d
1 changed files with 2 additions and 1 deletions
|
|
@ -58,7 +58,8 @@ def main(shaders, glsl, outdir):
|
|||
odd = [l for l in prologue if not PROLOGUE.match(l)]
|
||||
if odd:
|
||||
sys.exit('refuse: %d unexpected prologue lines, first at %r' % (len(odd), odd[0][:60]))
|
||||
seen = collections.Counter(n for n, _ in parts)
|
||||
seen = collections.Counter(b.split('
|
||||
')[0] for _, b in parts) # overloads share a name, never a signature
|
||||
dup = sorted(n for n, c in seen.items() if c > 1)
|
||||
if dup:
|
||||
sys.exit('refuse: duplicate chunks %s' % dup[:6])
|
||||
|
|
|
|||
Loading…
Reference in a new issue