Created
January 14, 2021 15:12
-
-
Save floooh/ef7063a9dabcf481e07a8e4ac6d3e9ef to your computer and use it in GitHub Desktop.
build.zig for hello.c
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const bld = @import("std").build; | |
pub fn build(b: *bld.Builder) void { | |
const exe = b.addExecutable("hello", null); | |
exe.addCSourceFile("hello.c", &[_][]const u8 { "" }); | |
exe.linkLibC(); | |
exe.install(); | |
b.step("run", "Run hello").dependOn(&exe.run().step); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment