mirror of
https://github.com/oven-sh/bun
synced 2026-02-11 03:18:53 +00:00
upgrade zig to v0.11.0-dev.3737+9eb008717 (#3374)
* progress
* finish `@memset/@memcpy` update
* Update build.zig
* change `@enumToInt` to `@intFromEnum` and friends
* update zig versions
* it was 1
* add link to issue
* add `compileError` reminder
* fix merge
* format
* upgrade to llvm 16
* Revert "upgrade to llvm 16"
This reverts commit cc930ceb1c.
---------
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
This commit is contained in:
@@ -3,6 +3,7 @@ const string = @import("./string_types.zig").string;
|
||||
const PackageJSON = @import("./resolver/package_json.zig").PackageJSON;
|
||||
const logger = @import("root").bun.logger;
|
||||
const Fs = @import("./fs.zig");
|
||||
const bun = @import("root").bun;
|
||||
const ComptimeStringMap = @import("./comptime_string_map.zig").ComptimeStringMap;
|
||||
|
||||
const assert_code: string = @embedFile("./node-fallbacks/out/assert.js");
|
||||
@@ -67,7 +68,7 @@ const assert_package_json = PackageJSON{
|
||||
.name = "assert",
|
||||
.version = "0.0.0-polyfill",
|
||||
.module_type = .cjs,
|
||||
.hash = @truncate(u32, std.hash.Wyhash.hash(0, "assert@0.0.0-polyfill")),
|
||||
.hash = @truncate(u32, bun.hash("assert@0.0.0-polyfill")),
|
||||
.main_fields = undefined,
|
||||
.browser_map = undefined,
|
||||
.source = logger.Source.initPathString("/bun-vfs/node_modules/assert/package.json", ""),
|
||||
@@ -76,7 +77,7 @@ const buffer_package_json = PackageJSON{
|
||||
.name = "buffer",
|
||||
.version = "0.0.0-polyfill",
|
||||
.module_type = .cjs,
|
||||
.hash = @truncate(u32, std.hash.Wyhash.hash(0, "buffer@0.0.0-polyfill")),
|
||||
.hash = @truncate(u32, bun.hash("buffer@0.0.0-polyfill")),
|
||||
.main_fields = undefined,
|
||||
.browser_map = undefined,
|
||||
.source = logger.Source.initPathString("/bun-vfs/node_modules/buffer/package.json", ""),
|
||||
@@ -85,7 +86,7 @@ const console_package_json = PackageJSON{
|
||||
.name = "console",
|
||||
.version = "0.0.0-polyfill",
|
||||
.module_type = .cjs,
|
||||
.hash = @truncate(u32, std.hash.Wyhash.hash(0, "console@0.0.0-polyfill")),
|
||||
.hash = @truncate(u32, bun.hash("console@0.0.0-polyfill")),
|
||||
.main_fields = undefined,
|
||||
.browser_map = undefined,
|
||||
.source = logger.Source.initPathString("/bun-vfs/node_modules/console/package.json", ""),
|
||||
@@ -94,7 +95,7 @@ const constants_package_json = PackageJSON{
|
||||
.name = "constants",
|
||||
.version = "0.0.0-polyfill",
|
||||
.module_type = .cjs,
|
||||
.hash = @truncate(u32, std.hash.Wyhash.hash(0, "constants@0.0.0-polyfill")),
|
||||
.hash = @truncate(u32, bun.hash("constants@0.0.0-polyfill")),
|
||||
.main_fields = undefined,
|
||||
.browser_map = undefined,
|
||||
.source = logger.Source.initPathString("/bun-vfs/node_modules/constants/package.json", ""),
|
||||
@@ -103,7 +104,7 @@ const crypto_package_json = PackageJSON{
|
||||
.name = "crypto",
|
||||
.version = "0.0.0-polyfill",
|
||||
.module_type = .cjs,
|
||||
.hash = @truncate(u32, std.hash.Wyhash.hash(0, "crypto@0.0.0-polyfill")),
|
||||
.hash = @truncate(u32, bun.hash("crypto@0.0.0-polyfill")),
|
||||
.main_fields = undefined,
|
||||
.browser_map = undefined,
|
||||
.source = logger.Source.initPathString("/bun-vfs/node_modules/crypto/package.json", ""),
|
||||
@@ -112,7 +113,7 @@ const domain_package_json = PackageJSON{
|
||||
.name = "domain",
|
||||
.version = "0.0.0-polyfill",
|
||||
.module_type = .cjs,
|
||||
.hash = @truncate(u32, std.hash.Wyhash.hash(0, "domain@0.0.0-polyfill")),
|
||||
.hash = @truncate(u32, bun.hash("domain@0.0.0-polyfill")),
|
||||
.main_fields = undefined,
|
||||
.browser_map = undefined,
|
||||
.source = logger.Source.initPathString("/bun-vfs/node_modules/domain/package.json", ""),
|
||||
@@ -121,7 +122,7 @@ const events_package_json = PackageJSON{
|
||||
.name = "events",
|
||||
.version = "0.0.0-polyfill",
|
||||
.module_type = .cjs,
|
||||
.hash = @truncate(u32, std.hash.Wyhash.hash(0, "events@0.0.0-polyfill")),
|
||||
.hash = @truncate(u32, bun.hash("events@0.0.0-polyfill")),
|
||||
.main_fields = undefined,
|
||||
.browser_map = undefined,
|
||||
.source = logger.Source.initPathString("/bun-vfs/node_modules/events/package.json", ""),
|
||||
@@ -130,7 +131,7 @@ const http_package_json = PackageJSON{
|
||||
.name = "http",
|
||||
.version = "0.0.0-polyfill",
|
||||
.module_type = .cjs,
|
||||
.hash = @truncate(u32, std.hash.Wyhash.hash(0, "http@0.0.0-polyfill")),
|
||||
.hash = @truncate(u32, bun.hash("http@0.0.0-polyfill")),
|
||||
.main_fields = undefined,
|
||||
.browser_map = undefined,
|
||||
.source = logger.Source.initPathString("/bun-vfs/node_modules/http/package.json", ""),
|
||||
@@ -139,7 +140,7 @@ const https_package_json = PackageJSON{
|
||||
.name = "https",
|
||||
.version = "0.0.0-polyfill",
|
||||
.module_type = .cjs,
|
||||
.hash = @truncate(u32, std.hash.Wyhash.hash(0, "https@0.0.0-polyfill")),
|
||||
.hash = @truncate(u32, bun.hash("https@0.0.0-polyfill")),
|
||||
.main_fields = undefined,
|
||||
.browser_map = undefined,
|
||||
.source = logger.Source.initPathString("/bun-vfs/node_modules/https/package.json", ""),
|
||||
@@ -148,7 +149,7 @@ const net_package_json = PackageJSON{
|
||||
.name = "net",
|
||||
.version = "0.0.0-polyfill",
|
||||
.module_type = .cjs,
|
||||
.hash = @truncate(u32, std.hash.Wyhash.hash(0, "net@0.0.0-polyfill")),
|
||||
.hash = @truncate(u32, bun.hash("net@0.0.0-polyfill")),
|
||||
.main_fields = undefined,
|
||||
.browser_map = undefined,
|
||||
.source = logger.Source.initPathString("/bun-vfs/node_modules/net/package.json", ""),
|
||||
@@ -157,7 +158,7 @@ const os_package_json = PackageJSON{
|
||||
.name = "os",
|
||||
.version = "0.0.0-polyfill",
|
||||
.module_type = .cjs,
|
||||
.hash = @truncate(u32, std.hash.Wyhash.hash(0, "os@0.0.0-polyfill")),
|
||||
.hash = @truncate(u32, bun.hash("os@0.0.0-polyfill")),
|
||||
.main_fields = undefined,
|
||||
.browser_map = undefined,
|
||||
.source = logger.Source.initPathString("/bun-vfs/node_modules/os/package.json", ""),
|
||||
@@ -166,7 +167,7 @@ const path_package_json = PackageJSON{
|
||||
.name = "path",
|
||||
.version = "0.0.0-polyfill",
|
||||
.module_type = .cjs,
|
||||
.hash = @truncate(u32, std.hash.Wyhash.hash(0, "path@0.0.0-polyfill")),
|
||||
.hash = @truncate(u32, bun.hash("path@0.0.0-polyfill")),
|
||||
.main_fields = undefined,
|
||||
.browser_map = undefined,
|
||||
.source = logger.Source.initPathString("/bun-vfs/node_modules/path/package.json", ""),
|
||||
@@ -175,7 +176,7 @@ const process_package_json = PackageJSON{
|
||||
.name = "process",
|
||||
.version = "0.0.0-polyfill",
|
||||
.module_type = .cjs,
|
||||
.hash = @truncate(u32, std.hash.Wyhash.hash(0, "process@0.0.0-polyfill")),
|
||||
.hash = @truncate(u32, bun.hash("process@0.0.0-polyfill")),
|
||||
.main_fields = undefined,
|
||||
.browser_map = undefined,
|
||||
.source = logger.Source.initPathString("/bun-vfs/node_modules/process/package.json", ""),
|
||||
@@ -184,7 +185,7 @@ const punycode_package_json = PackageJSON{
|
||||
.name = "punycode",
|
||||
.version = "0.0.0-polyfill",
|
||||
.module_type = .cjs,
|
||||
.hash = @truncate(u32, std.hash.Wyhash.hash(0, "punycode@0.0.0-polyfill")),
|
||||
.hash = @truncate(u32, bun.hash("punycode@0.0.0-polyfill")),
|
||||
.main_fields = undefined,
|
||||
.browser_map = undefined,
|
||||
.source = logger.Source.initPathString("/bun-vfs/node_modules/punycode/package.json", ""),
|
||||
@@ -193,7 +194,7 @@ const querystring_package_json = PackageJSON{
|
||||
.name = "querystring",
|
||||
.version = "0.0.0-polyfill",
|
||||
.module_type = .cjs,
|
||||
.hash = @truncate(u32, std.hash.Wyhash.hash(0, "querystring@0.0.0-polyfill")),
|
||||
.hash = @truncate(u32, bun.hash("querystring@0.0.0-polyfill")),
|
||||
.main_fields = undefined,
|
||||
.browser_map = undefined,
|
||||
.source = logger.Source.initPathString("/bun-vfs/node_modules/querystring/package.json", ""),
|
||||
@@ -202,7 +203,7 @@ const stream_package_json = PackageJSON{
|
||||
.name = "stream",
|
||||
.version = "0.0.0-polyfill",
|
||||
.module_type = .cjs,
|
||||
.hash = @truncate(u32, std.hash.Wyhash.hash(0, "stream@0.0.0-polyfill")),
|
||||
.hash = @truncate(u32, bun.hash("stream@0.0.0-polyfill")),
|
||||
.main_fields = undefined,
|
||||
.browser_map = undefined,
|
||||
.source = logger.Source.initPathString("/bun-vfs/node_modules/stream/package.json", ""),
|
||||
@@ -213,7 +214,7 @@ const string_decoder_package_json = PackageJSON{
|
||||
.module_type = .cjs,
|
||||
.hash = brk: {
|
||||
@setEvalBranchQuota(9999);
|
||||
break :brk @truncate(u32, std.hash.Wyhash.hash(0, "string_decoder@0.0.0-polyfill"));
|
||||
break :brk @truncate(u32, bun.hash("string_decoder@0.0.0-polyfill"));
|
||||
},
|
||||
|
||||
.main_fields = undefined,
|
||||
@@ -225,7 +226,7 @@ const sys_package_json = PackageJSON{
|
||||
.name = "sys",
|
||||
.version = "0.0.0-polyfill",
|
||||
.module_type = .cjs,
|
||||
.hash = @truncate(u32, std.hash.Wyhash.hash(0, "sys@0.0.0-polyfill")),
|
||||
.hash = @truncate(u32, bun.hash("sys@0.0.0-polyfill")),
|
||||
.main_fields = undefined,
|
||||
.browser_map = undefined,
|
||||
.source = logger.Source.initPathString("/bun-vfs/node_modules/sys/package.json", ""),
|
||||
@@ -234,7 +235,7 @@ const timers_package_json = PackageJSON{
|
||||
.name = "timers",
|
||||
.version = "0.0.0-polyfill",
|
||||
.module_type = .cjs,
|
||||
.hash = @truncate(u32, std.hash.Wyhash.hash(0, "timers@0.0.0-polyfill")),
|
||||
.hash = @truncate(u32, bun.hash("timers@0.0.0-polyfill")),
|
||||
.main_fields = undefined,
|
||||
.browser_map = undefined,
|
||||
.source = logger.Source.initPathString("/bun-vfs/node_modules/timers/package.json", ""),
|
||||
@@ -243,7 +244,7 @@ const tty_package_json = PackageJSON{
|
||||
.name = "tty",
|
||||
.version = "0.0.0-polyfill",
|
||||
.module_type = .cjs,
|
||||
.hash = @truncate(u32, std.hash.Wyhash.hash(0, "tty@0.0.0-polyfill")),
|
||||
.hash = @truncate(u32, bun.hash("tty@0.0.0-polyfill")),
|
||||
.main_fields = undefined,
|
||||
.browser_map = undefined,
|
||||
.source = logger.Source.initPathString("/bun-vfs/node_modules/tty/package.json", ""),
|
||||
@@ -252,7 +253,7 @@ const url_package_json = PackageJSON{
|
||||
.name = "url",
|
||||
.version = "0.0.0-polyfill",
|
||||
.module_type = .cjs,
|
||||
.hash = @truncate(u32, std.hash.Wyhash.hash(0, "url@0.0.0-polyfill")),
|
||||
.hash = @truncate(u32, bun.hash("url@0.0.0-polyfill")),
|
||||
.main_fields = undefined,
|
||||
.browser_map = undefined,
|
||||
.source = logger.Source.initPathString("/bun-vfs/node_modules/url/package.json", ""),
|
||||
@@ -261,7 +262,7 @@ const util_package_json = PackageJSON{
|
||||
.name = "util",
|
||||
.version = "0.0.0-polyfill",
|
||||
.module_type = .cjs,
|
||||
.hash = @truncate(u32, std.hash.Wyhash.hash(0, "util@0.0.0-polyfill")),
|
||||
.hash = @truncate(u32, bun.hash("util@0.0.0-polyfill")),
|
||||
.main_fields = undefined,
|
||||
.browser_map = undefined,
|
||||
.source = logger.Source.initPathString("/bun-vfs/node_modules/util/package.json", ""),
|
||||
@@ -270,7 +271,7 @@ const zlib_package_json = PackageJSON{
|
||||
.name = "zlib",
|
||||
.version = "0.0.0-polyfill",
|
||||
.module_type = .cjs,
|
||||
.hash = @truncate(u32, std.hash.Wyhash.hash(0, "zlib@0.0.0-polyfill")),
|
||||
.hash = @truncate(u32, bun.hash("zlib@0.0.0-polyfill")),
|
||||
.main_fields = undefined,
|
||||
.browser_map = undefined,
|
||||
.source = logger.Source.initPathString("/bun-vfs/node_modules/zlib/package.json", ""),
|
||||
@@ -280,7 +281,7 @@ const node_fetch_package_json = PackageJSON{
|
||||
.name = "node-fetch",
|
||||
.version = "0.0.0-polyfill",
|
||||
.module_type = .cjs,
|
||||
.hash = @truncate(u32, std.hash.Wyhash.hash(0, "node-fetch@0.0.0-polyfill")),
|
||||
.hash = @truncate(u32, bun.hash("node-fetch@0.0.0-polyfill")),
|
||||
.main_fields = undefined,
|
||||
.browser_map = undefined,
|
||||
.source = logger.Source.initPathString("/bun-vfs/node_modules/node-fetch/package.json", ""),
|
||||
@@ -289,7 +290,7 @@ const isomorphic_fetch_package_json = PackageJSON{
|
||||
.name = "isomorphic-fetch",
|
||||
.version = "0.0.0-polyfill",
|
||||
.module_type = .cjs,
|
||||
.hash = @truncate(u32, std.hash.Wyhash.hash(0, "isomorphic-fetch@0.0.0-polyfill")),
|
||||
.hash = @truncate(u32, bun.hash("isomorphic-fetch@0.0.0-polyfill")),
|
||||
.main_fields = undefined,
|
||||
.browser_map = undefined,
|
||||
.source = logger.Source.initPathString("/bun-vfs/node_modules/isomorphic-fetch/package.json", ""),
|
||||
@@ -298,7 +299,7 @@ const supports_color_package_json = PackageJSON{
|
||||
.name = "supports-color",
|
||||
.version = "0.0.0-polyfill",
|
||||
.module_type = .cjs,
|
||||
.hash = @truncate(u32, std.hash.Wyhash.hash(0, "supports-color@0.0.0-polyfill")),
|
||||
.hash = @truncate(u32, bun.hash("supports-color@0.0.0-polyfill")),
|
||||
.main_fields = undefined,
|
||||
.browser_map = undefined,
|
||||
.source = logger.Source.initPathString("/bun-vfs/node_modules/supports-color/package.json", ""),
|
||||
@@ -308,7 +309,7 @@ const vercel_fetch_package_json = PackageJSON{
|
||||
.name = "@vercel/fetch",
|
||||
.version = "0.0.0-polyfill",
|
||||
.module_type = .cjs,
|
||||
.hash = @truncate(u32, std.hash.Wyhash.hash(0, "@vercel/fetch@0.0.0-polyfill")),
|
||||
.hash = @truncate(u32, bun.hash("@vercel/fetch@0.0.0-polyfill")),
|
||||
.main_fields = undefined,
|
||||
.browser_map = undefined,
|
||||
.source = logger.Source.initPathString("/bun-vfs/node_modules/@vercel/fetch/package.json", ""),
|
||||
|
||||
Reference in New Issue
Block a user