aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <jarred@ci.local> 2021-09-10 13:41:24 -0700
committerGravatar Jarred Sumner <jarred@ci.local> 2021-09-10 13:41:24 -0700
commit6f2554b13ab2c89935bb063c8ab919bfa168ff96 (patch)
treed75578c0ca160b3bde9396b59b8c859801ed1a37
parentb66ef231670b84fe71b3d97a896c48a09209eb9b (diff)
downloadbun-6f2554b13ab2c89935bb063c8ab919bfa168ff96.tar.gz
bun-6f2554b13ab2c89935bb063c8ab919bfa168ff96.tar.zst
bun-6f2554b13ab2c89935bb063c8ab919bfa168ff96.zip
Tweaks
-rw-r--r--Makefile4
-rw-r--r--src/bundler.zig2
-rw-r--r--src/js_parser/js_parser.zig6
3 files changed, 6 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 5b93f58cf..36bce3755 100644
--- a/Makefile
+++ b/Makefile
@@ -4,10 +4,10 @@ bun: vendor bun-prod-native bun-prod-wasi bun-prod-wasm
vendor: api node-fallbacks runtime_js fallback_decoder mimalloc picohttp jsc
build-obj:
- zig build obj -Drelease-fast
+ zig build obj -Drelease-safe
sign-macos-x64:
- codesign -s 417F1E55D8BDFB5DE25DA3126EDF238ED1F45B7E -f -v --timestamp --entitlements entitlements.plist ./build/macos-aarch64/bun
+ gon sign-macos-x64.json
sign-macos-aarch64:
gon sign.macos-aarch64.json
diff --git a/src/bundler.zig b/src/bundler.zig
index 9b5371014..eec0f7488 100644
--- a/src/bundler.zig
+++ b/src/bundler.zig
@@ -2697,7 +2697,7 @@ pub const Transformer = struct {
.transform_imports = false,
.runtime_imports = ast.runtime_imports,
},
- u1,
+ ?*c_void,
null,
);
},
diff --git a/src/js_parser/js_parser.zig b/src/js_parser/js_parser.zig
index a0ce4252f..1984c0429 100644
--- a/src/js_parser/js_parser.zig
+++ b/src/js_parser/js_parser.zig
@@ -9886,7 +9886,7 @@ pub fn NewParser(
const JSXTag = struct {
pub const TagType = enum { fragment, tag };
pub const Data = union(TagType) {
- fragment: u1,
+ fragment: u8,
tag: Expr,
pub fn asExpr(d: *const Data) ?ExprNodeIndex {
@@ -14506,12 +14506,12 @@ pub fn NewParser(
.require_resolve_transposer = undefined,
.source = source,
- .needs_jsx_import = if (only_scan_imports_and_do_not_visit) false else NeedsJSXType{},
+ .needs_jsx_import = if (comptime only_scan_imports_and_do_not_visit) false else NeedsJSXType{},
.lexer = lexer,
.hmr_exports_list = @TypeOf(this.hmr_exports_list).init(allocator),
};
- if (!only_scan_imports_and_do_not_visit) {
+ if (comptime !only_scan_imports_and_do_not_visit) {
this.import_records = @TypeOf(this.import_records).init(allocator);
this.named_imports = NamedImportsType.init(allocator);
}