Browse Source

... actually make it deterministic

pull/14/head
PoroCYon 2 years ago
committed by PoroCYon
parent
commit
2f535befa2
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/smolemit.py

+ 2
- 2
src/smolemit.py View File

@ -7,8 +7,8 @@ from smolshared import *
def sort_imports(libraries, hashfn):
#eprintf("in: " + str(libraries))
# sort libs by name length
ll = sorted(libraries.items(), key=lambda ls: len(ls[0]))
# sort libs by name length, then by name
ll = sorted(libraries.items(), key=lambda ls: (len(ls[0]), ls[0]))
for i in range(len(ll)):
# sort symbols by hash value


Loading…
Cancel
Save