@@ -131,24 +131,6 @@ pub fn build(b: *Build) !void {
131131 const wpt_step = b .step ("wpt" , "WPT tests" );
132132 wpt_step .dependOn (& wpt_cmd .step );
133133 }
134-
135- {
136- // get v8
137- // -------
138- const v8 = b .dependency ("v8" , .{ .target = target , .optimize = optimize });
139- const get_v8 = b .addRunArtifact (v8 .artifact ("get-v8" ));
140- const get_step = b .step ("get-v8" , "Get v8" );
141- get_step .dependOn (& get_v8 .step );
142- }
143-
144- {
145- // build v8
146- // -------
147- const v8 = b .dependency ("v8" , .{ .target = target , .optimize = optimize });
148- const build_v8 = b .addRunArtifact (v8 .artifact ("build-v8" ));
149- const build_step = b .step ("build-v8" , "Build v8" );
150- build_step .dependOn (& build_v8 .step );
151- }
152134}
153135
154136fn addDependencies (b : * Build , mod : * Build.Module , opts : * Build.Step.Options ) ! void {
@@ -172,27 +154,6 @@ fn addDependencies(b: *Build, mod: *Build.Module, opts: *Build.Step.Options) !vo
172154 v8_mod .addOptions ("default_exports" , v8_opts );
173155 mod .addImport ("v8" , v8_mod );
174156
175- const release_dir = if (mod .optimize .? == .Debug ) "debug" else "release" ;
176- const os = switch (target .result .os .tag ) {
177- .linux = > "linux" ,
178- .macos = > "macos" ,
179- else = > return error .UnsupportedPlatform ,
180- };
181- var lib_path = try std .fmt .allocPrint (
182- mod .owner .allocator ,
183- "v8/out/{s}/{s}/obj/zig/libc_v8.a" ,
184- .{ os , release_dir },
185- );
186- std .fs .cwd ().access (lib_path , .{}) catch {
187- // legacy path
188- lib_path = try std .fmt .allocPrint (
189- mod .owner .allocator ,
190- "v8/out/{s}/obj/zig/libc_v8.a" ,
191- .{release_dir },
192- );
193- };
194- mod .addObjectFile (mod .owner .path (lib_path ));
195-
196157 switch (target .result .os .tag ) {
197158 .macos = > {
198159 // v8 has a dependency, abseil-cpp, which, on Mac, uses CoreFoundation
0 commit comments