| ... | @@ -30,6 +30,9 @@ pub fn execute(args: [][]u8) !void { | ... | @@ -30,6 +30,9 @@ pub fn execute(args: [][]u8) !void { |
| 30 | \\ for (packages) |pkg| { | 30 | \\ for (packages) |pkg| { |
| 31 | \\ exe.addPackage(pkg); | 31 | \\ exe.addPackage(pkg); |
| 32 | \\ } | 32 | \\ } |
| | 33 | \\ if (c_include_dirs.len > 0 or c_source_files.len > 0) { |
| | 34 | \\ exe.linkLibC(); |
| | 35 | \\ } |
| 33 | \\ for (c_include_dirs) |dir| { | 36 | \\ for (c_include_dirs) |dir| { |
| 34 | \\ exe.addIncludeDir(dir); | 37 | \\ exe.addIncludeDir(dir); |
| 35 | \\ } | 38 | \\ } |