File tree 3 files changed +11
-9
lines changed
3 files changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -4,13 +4,13 @@ pub fn build(b: &Builder) {
4
4
const exe = b .addCExecutable ("main" );
5
5
b .addCIncludePath ("." );
6
6
exe .addCompileFlags ([][]const u8 {
7
- "-std=c99"
7
+ "-std=c99" ,
8
+ "-nostdlib" ,
8
9
});
9
10
10
11
const source_files = [][]const u8 {
11
12
"compute_helper.c" ,
12
- "display.c" ,
13
- "main.c"
13
+ "main.c" ,
14
14
};
15
15
16
16
for (source_files ) | source | {
@@ -19,6 +19,7 @@ pub fn build(b: &Builder) {
19
19
20
20
const zig_source_files = [][]const u8 {
21
21
"compute.zig" ,
22
+ "display.zig" ,
22
23
};
23
24
24
25
for (zig_source_files ) | source | {
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ const std = @import ("std" );
2
+ const printf = std .io .stdout .printf ;
3
+
4
+ export fn display_char (c : u8 )
5
+ {
6
+ %% printf ("{c}\n " , c );
7
+ }
You can’t perform that action at this time.
0 commit comments