mirror of
https://github.com/servo/servo.git
synced 2025-06-24 17:14:33 +01:00
Build: Do not swallow Mako template errors in src/components/style/properties.rs.mako
This commit is contained in:
parent
a15f3ee0da
commit
cde9a0caea
2 changed files with 4 additions and 1 deletions
|
@ -309,7 +309,9 @@ $(AUTOGEN_SRC_script): $(BINDINGS_SRC)/%Binding.rs: $(bindinggen_dependencies) \
|
|||
globalgen_dependencies := $(addprefix $(BINDINGS_SRC)/, GlobalGen.py Bindings.conf Configuration.py CodegenRust.py parser/WebIDL.py) $(CACHE_DIR)/.done
|
||||
|
||||
$(MAKO_style): $(MAKO_SRC_style)
|
||||
PYTHONPATH=$(MAKO_ZIP) python -c "from mako.template import Template; print(Template(filename='$<').render())" > $@
|
||||
# Use a temporary file to avoid writing an empty (but more recent) file on failure.
|
||||
PYTHONPATH=$(MAKO_ZIP) python -c "from mako.template import Template; print(Template(filename='$<').render())" > $@.tmp
|
||||
mv $@.tmp $@
|
||||
|
||||
|
||||
$(CACHE_DIR)/.done:
|
||||
|
|
1
src/components/style/.gitignore
vendored
1
src/components/style/.gitignore
vendored
|
@ -1 +1,2 @@
|
|||
properties.rs
|
||||
properties.rs.tmp
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue