CBE: Make C an ObjectFormat instead of a special bool (#5849)

This commit is contained in:
pixelherodev
2020-07-12 22:56:31 -04:00
committed by GitHub
parent dff1ac1089
commit 2c882b2e65
5 changed files with 14 additions and 11 deletions

View File

@@ -723,7 +723,6 @@ pub const InitOptions = struct {
object_format: ?std.builtin.ObjectFormat = null,
optimize_mode: std.builtin.Mode = .Debug,
keep_source_files_loaded: bool = false,
cbe: bool = false,
};
pub fn init(gpa: *Allocator, options: InitOptions) !Module {
@@ -733,7 +732,6 @@ pub fn init(gpa: *Allocator, options: InitOptions) !Module {
.output_mode = options.output_mode,
.link_mode = options.link_mode orelse .Static,
.object_format = options.object_format orelse options.target.getObjectFormat(),
.cbe = options.cbe,
});
errdefer bin_file.destroy();