diff options
Diffstat (limited to 'build')
| -rw-r--r-- | build/llvm.zig | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/build/llvm.zig b/build/llvm.zig index 94b7501..7794ecd 100644 --- a/build/llvm.zig +++ b/build/llvm.zig @@ -10,12 +10,15 @@ pub fn add(ctx: Ctx) std.Build.LazyPath { // The runtime runs inside the target at every event: optimized whatever // mode the rest is built in. - const fast = b.createModule(.{ .root_source_file = b.path("src/trace/root.zig"), .target = ctx.target, .optimize = .ReleaseFast, .pic = true }); + // No debug info either: a debugger stepping the program by line then + // runs through the runtime's calls instead of stopping in them. + const fast = b.createModule(.{ .root_source_file = b.path("src/trace/root.zig"), .target = ctx.target, .optimize = .ReleaseFast, .pic = true, .strip = true }); const rt = b.addLibrary(.{ .name = "ztrace-rt", .root_module = b.createModule(.{ .root_source_file = b.path("src/instr/rt.zig"), .target = ctx.target, .optimize = .ReleaseFast, .pic = true, + .strip = true, .imports = &.{.{ .name = "ztrace", .module = fast }}, }) }); b.installArtifact(rt); |
