Просмотр исходного кода

update: 支持启用bit64库,并添加到云编译的元数据

Wendal Chen 2 лет назад
Родитель
Сommit
78eaea6b64

+ 7 - 0
cloudbuild/esp32c3-idf5.meta.json

@@ -305,6 +305,13 @@
                   "rsize": 40008,
                   "fsize": 274360,
                   "dft": false
+              },
+              {
+                  "name": "bit64",
+                  "content": "64位数据处理库",
+                  "rsize": 10008,
+                  "fsize": 274360,
+                  "dft": false
               }
            ],
            "fsize":365376,

+ 7 - 0
cloudbuild/esp32s3-idf5.meta.json

@@ -305,6 +305,13 @@
                   "rsize": 40008,
                   "fsize": 274360,
                   "dft": false
+              },
+              {
+                  "name": "bit64",
+                  "content": "64位数据处理库",
+                  "rsize": 10008,
+                  "fsize": 274360,
+                  "dft": false
               }
            ],
            "fsize":365376,

+ 3 - 0
luatos/components/luat/port/luat_base_idf5.c

@@ -236,6 +236,9 @@ static const luaL_Reg loadedlibs[] = {
 #endif
 #ifdef LUAT_USE_ICONV
   {"iconv", luaopen_iconv},
+#endif
+#ifdef LUAT_USE_BIT64
+  {"bit64", luaopen_bit64},
 #endif
   {NULL, NULL}
 };

+ 1 - 0
luatos/include/luat_conf_bsp.h

@@ -104,6 +104,7 @@
 
 #define LUAT_USE_RSA 1
 // #define LUAT_USE_ICONV 1
+// #define LUAT_USE_BIT64 1
 
 // ------------------