Revert "Add executable method (addOptions, addObjectFile) and fix recursive call in addIncludePath (#79)" (#81)

This reverts commit bebf6cf92d.
wch-ch32v003
Matt Knight 2 years ago committed by GitHub
parent bebf6cf92d
commit 4cc682cece
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -69,7 +69,7 @@ pub const EmbeddedExecutable = struct {
}
pub fn addIncludePath(exe: *EmbeddedExecutable, path: []const u8) void {
exe.inner.addIncludePath(path);
exe.addIncludePath(path);
}
pub fn addSystemIncludePath(exe: *EmbeddedExecutable, path: []const u8) void {
@ -79,15 +79,6 @@ pub const EmbeddedExecutable = struct {
pub fn addCSourceFile(exe: *EmbeddedExecutable, file: []const u8, flags: []const []const u8) void {
exe.inner.addCSourceFile(file, flags);
}
pub fn addOptions(exe: *EmbeddedExecutable, package_name: []const u8, options: *std.build.OptionsStep) void {
exe.inner.addOptions(package_name, options);
exe.addPackage(.{ .name = package_name, .source = options.getSource() });
}
pub fn addObjectFile(exe: *EmbeddedExecutable, source_file: []const u8) void {
exe.inner.addObjectFile(source_file);
}
};
pub fn addEmbeddedExecutable(

Loading…
Cancel
Save