mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Do not create modules from files with nothing to codegen (fixes #8711)
This commit is contained in:
parent
85b43ea317
commit
2522cfe539
2 changed files with 16 additions and 10 deletions
|
@ -18,8 +18,10 @@ def generate_binding_rs(config, outputprefix, webidlfile):
|
|||
"""
|
||||
|
||||
filename = outputprefix + ".rs"
|
||||
root = CGBindingRoot(config, outputprefix, webidlfile)
|
||||
if replaceFileIfChanged(filename, root.define()):
|
||||
module = CGBindingRoot(config, outputprefix, webidlfile).define()
|
||||
if not module:
|
||||
print "Skipping empty module: %s" % (filename)
|
||||
elif replaceFileIfChanged(filename, module):
|
||||
print "Generating binding implementation: %s" % (filename)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue