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
22 changes: 5 additions & 17 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ pub fn build(b: *Build) !void {
const exe = b.addExecutable(
.{
.name = "buzz",
.use_llvm = true,
.root_module = b.createModule(
.{
.target = target,
Expand Down Expand Up @@ -105,7 +104,6 @@ pub fn build(b: *Build) !void {
b.addExecutable(
.{
.name = "buzz_behavior",
.use_llvm = true,
.root_module = b.createModule(
.{
.root_source_file = b.path("src/behavior.zig"),
Expand Down Expand Up @@ -134,7 +132,6 @@ pub fn build(b: *Build) !void {
b.addExecutable(
.{
.name = "buzz_debugger",
.use_llvm = true,
.root_module = b.createModule(
.{
.root_source_file = b.path("src/Debugger.zig"),
Expand All @@ -159,7 +156,6 @@ pub fn build(b: *Build) !void {
b.addExecutable(
.{
.name = "buzz_lsp",
.use_llvm = true,
.root_module = b.createModule(
.{
.root_source_file = b.path("src/lsp.zig"),
Expand Down Expand Up @@ -188,7 +184,6 @@ pub fn build(b: *Build) !void {
const lsp_tests = if (!is_wasm and target.result.os.tag != .windows)
b.addTest(
.{
.use_llvm = true,
.root_module = b.createModule(
.{
.root_source_file = b.path("src/lsp.zig"),
Expand Down Expand Up @@ -218,7 +213,6 @@ pub fn build(b: *Build) !void {
const check_exe = b.addExecutable(
.{
.name = "buzz",
.use_llvm = true,
.root_module = b.createModule(
.{
.root_source_file = b.path("src/main.zig"),
Expand Down Expand Up @@ -255,7 +249,6 @@ pub fn build(b: *Build) !void {
.{
.name = "buzz",
.linkage = .dynamic,
.use_llvm = true,
.root_module = b.createModule(
.{
.root_source_file = b.path("src/buzz_api.zig"),
Expand All @@ -275,7 +268,6 @@ pub fn build(b: *Build) !void {
.{
.name = "buzz",
.linkage = .static,
.use_llvm = true,
.root_module = b.createModule(
.{
.root_source_file = b.path("src/buzz_api.zig"),
Expand All @@ -290,7 +282,6 @@ pub fn build(b: *Build) !void {
.{
.name = "buzz",
.linkage = .static,
.use_llvm = true,
.root_module = b.createModule(
.{
.root_source_file = b.path("src/buzz_api.zig"),
Expand All @@ -306,7 +297,6 @@ pub fn build(b: *Build) !void {
// Test
const tests = b.addTest(
.{
.use_llvm = true,
.root_module = b.createModule(
.{
.root_source_file = b.path("src/main.zig"),
Expand Down Expand Up @@ -499,7 +489,6 @@ pub fn buildMimalloc(b: *Build, target: Build.ResolvedTarget, optimize: std.buil
.{
.name = "mimalloc",
.linkage = .static,
.use_llvm = true,
.root_module = b.createModule(
.{
.target = target,
Expand Down Expand Up @@ -562,7 +551,6 @@ pub fn buildLinenoise(b: *Build, target: Build.ResolvedTarget, optimize: std.bui
.{
.name = "linenoise",
.linkage = .static,
.use_llvm = true,
.root_module = b.createModule(
.{
.target = target,
Expand Down Expand Up @@ -602,7 +590,6 @@ fn buildTestLibraries(
.{
.name = "foreign",
.linkage = .dynamic,
.use_llvm = true,
.root_module = b.createModule(
.{
.root_source_file = b.path("tests/utils/foreign.zig"),
Expand All @@ -618,7 +605,6 @@ fn buildTestLibraries(
.{
.name = "hello",
.linkage = .dynamic,
.use_llvm = true,
.root_module = b.createModule(
.{
.root_source_file = b.path("tests/utils/hello.zig"),
Expand Down Expand Up @@ -646,7 +632,6 @@ fn buildTestLibraries(
.{
.name = "buzz_c_api",
.linkage = .dynamic,
.use_llvm = true,
.root_module = b.createModule(
.{
.target = target,
Expand Down Expand Up @@ -729,12 +714,15 @@ pub fn buildWasmReplDemo(b: *Build, exe: *Build.Step.Compile) void {
b.getInstallStep().dependOn(&copyRepl.step);
}

pub fn buildMir(b: *Build, target: Build.ResolvedTarget, optimize: std.builtin.OptimizeMode) !*Build.Step.Compile {
pub fn buildMir(
b: *Build,
target: Build.ResolvedTarget,
optimize: std.builtin.OptimizeMode,
) !*Build.Step.Compile {
const lib = b.addLibrary(
.{
.name = "mir",
.linkage = .static,
.use_llvm = true,
.root_module = b.createModule(
.{
.target = target,
Expand Down
Loading