This repository was archived by the owner on Jun 17, 2024. It is now read-only.
File tree 3 files changed +17
-1
lines changed
3 files changed +17
-1
lines changed Original file line number Diff line number Diff line change 1
- 0.12.0-dev.2541+894493549
1
+ 0.12.0
Original file line number Diff line number Diff line change @@ -63,6 +63,17 @@ pub fn build(b: *std.Build) void {
63
63
const dylib_header = b .addInstallFile (.{ .path = "zig-cache/fastlanez.h" }, "include/fastlanez.h" );
64
64
dylib_header .step .dependOn (& dylib .step );
65
65
66
+ // Freestanding Executable (required for WASM)
67
+ const freestanding = b .addExecutable (.{
68
+ .name = "fastlanez" ,
69
+ .target = target ,
70
+ .optimize = optimize ,
71
+ .root_source_file = .{ .path = "src/lib.zig" },
72
+ });
73
+ freestanding .rdynamic = true ;
74
+ freestanding .entry = .disabled ;
75
+ const freestanding_install = b .addInstallArtifact (freestanding , .{});
76
+
66
77
const lib_step = b .step ("lib" , "Build static C library" );
67
78
lib_step .dependOn (& lib_header .step );
68
79
lib_step .dependOn (& lib_install .step );
@@ -71,6 +82,9 @@ pub fn build(b: *std.Build) void {
71
82
dylib_step .dependOn (& lib_header .step );
72
83
dylib_step .dependOn (& dylib_install .step );
73
84
85
+ const freestanding_step = b .step ("freestanding" , "Build a freestanding executable" );
86
+ freestanding_step .dependOn (& freestanding_install .step );
87
+
74
88
// Unit Tests
75
89
const unit_tests = b .addTest (.{
76
90
.root_source_file = .{ .path = "src/fastlanez.zig" },
Original file line number Diff line number Diff line change @@ -74,3 +74,5 @@ comptime {
74
74
@export (Wrapper .decode , .{ .name = "fl_delta_decode_" ++ @typeName (E ) });
75
75
}
76
76
}
77
+
78
+ pub fn main () void {}
You can’t perform that action at this time.
0 commit comments