targets/toolchain_gcc.py
branchpython3
changeset 3755 ca814b175391
parent 3750 f62625418bff
child 3893 5b2f3a915a43
--- a/targets/toolchain_gcc.py	Fri Oct 28 14:26:17 2022 +0800
+++ b/targets/toolchain_gcc.py	Fri Oct 28 14:53:23 2022 +0800
@@ -136,7 +136,7 @@
         # read source
         src = open(os.path.join(self.buildpath, bn)).read()
         # compute new hash
-        newhash = hashlib.md5(src).hexdigest()
+        newhash = hashlib.md5(src.encode()).hexdigest()
         # compare
         match = (oldhash == newhash)
         if not match: