瀏覽代碼

Ensure that bootstrap files are identical upon recreation

Yentl Van Tendeloo 7 年之前
父節點
當前提交
a317f39eb8
共有 3 個文件被更改,包括 1 次插入7 次删除
  1. 二進制
      bootstrap/bootstrap.m.gz
  2. 1 7
      bootstrap/bootstrap.py
  3. 二進制
      bootstrap/minimal.m.gz

二進制
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")

二進制
bootstrap/minimal.m.gz