Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@ pub fn build(b: *std.Build) void {
.target = target,
.optimize = optimize,
});

// the following python program will crash if we enable sanitization:
// import argparse
// parser = argparse.ArgumentParser()
exe.root_module.sanitize_c = false;
exe.bundle_ubsan_rt = true;

exe.linkLibrary(libz_dep.artifact("z"));
exe.linkLibrary(openssl_dep.artifact("openssl"));
exe.linkLibC();
Expand Down