Changes createExecutable parameter is_dynamic to a enum to make code more readable .

This commit is contained in:
Felix (xq) Queißner
2021-02-23 21:14:50 +01:00
committed by Veikka Tuominen
parent 56cb0b5ca0
commit 07acb1ccc9
7 changed files with 77 additions and 66 deletions

View File

@@ -48,10 +48,7 @@ pub fn add(self: *WriteFileStep, basename: []const u8, bytes: []const u8) void {
self.files.append(node);
}
/// Unless setOutputDir was called, this function must be called only in
/// the make step, from a step that has declared a dependency on this one.
/// To run an executable built with zig build, use `run`, or create an install step and invoke it.
//pub const getOutputPath = @compileError("WriteFileStep.getOutputPath is deprecated! Use getFileSource to retrieve a ");
/// Gets a file source for the given basename. If the file does not exist, returns `null`.
pub fn getFileSource(step: *WriteFileStep, basename: []const u8) ?build.FileSource {
var it = step.files.first;