Browse Source

Ensure that bootstrap files are identical upon recreation

Yentl Van Tendeloo 3 years ago
parent
commit
a317f39eb8
3 changed files with 1 additions and 7 deletions
  1. BIN
      bootstrap/bootstrap.m.gz
  2. 1 7
      bootstrap/bootstrap.py
  3. BIN
      bootstrap/minimal.m.gz

BIN
bootstrap/bootstrap.m.gz


+ 1 - 7
bootstrap/bootstrap.py

@@ -83,11 +83,6 @@ def bootstrap():
                     "__sleep": ["Float", "Float", "Boolean"],
                 }
 
-    jit_primitives = {
-        "get_jit_enabled": ["Boolean"],
-        "set_jit_enabled": ["Void", "Boolean"]
-    }
-
     ### Actual script to generate the file
     import os
     import sys
@@ -123,7 +118,7 @@ def bootstrap():
                     f.write("Dict (__hierarchy, \"%s\", %s)\n" % (primitive_class_name, primitive_class_name))
 
                     # Define all primitive functions
-                    for function, parameters in list(primitive_decls.items()):
+                    for function, parameters in sorted(primitive_decls.items()):
                         f.write("Node _func_signature_%s()\n" % function)
                         f.write("Node _func_params_%s()\n" % function)
                         f.write("Node _func_body_%s()\n" % function)
@@ -148,7 +143,6 @@ def bootstrap():
                             f.write('Dict (_func_params_%s, "name", _name_%s)\n' % (param_encoding, param_encoding))
 
                 declare_primitive_class('primitives', primitives)
-                declare_primitive_class('jit', jit_primitives)
 
                 # Create the initial task
                 f.write("Node task_root()\n")

BIN
bootstrap/minimal.m.gz