fix(build): Fix module changes not getting picked up
Compare changes
Files
4+ 35
− 15
@@ -3,6 +3,8 @@
@@ -16,23 +18,41 @@ def main():
Previously, we left out the dependency of the QSTR header on
modules.h
. This was done to prevent rebuilds of the entire
MicroPython sources whenever a Pycardium module is changed. This
leads to issues where QSTRs got out of sync and weird errors like
the following could happen:
import foo_module
Exception: No module `abc_def` (a different string than expected)
Attempt to fix this by only updating the QSTR header when the module-header actually changes. For this, a few workarounds are needed:
Co-authored-by: dx dequis@dequis.org
@schneider: Please test whether this works on your system as well ;)