Build i386 for 80386 (TODO: add others like P4)
This commit is contained in:
parent
ae884cc94b
commit
5535db2488
|
|
@ -43,6 +43,7 @@ const x86_64 = Target {
|
|||
const intel386 = Target {
|
||||
.parent = &x86,
|
||||
.cpu_arch = std.Target.Cpu.Arch.i386,
|
||||
.cpu_model = std.build.Target.CpuModel {.explicit = &std.builtin.Target.x86.cpu._i386},
|
||||
.archdir = "i386",
|
||||
.name = "i386-generic",
|
||||
};
|
||||
|
|
@ -237,7 +238,7 @@ pub fn build(b: *Builder) !void {
|
|||
|
||||
exe.setTarget(getTarget(ktarget));
|
||||
exe.setBuildMode(mode);
|
||||
// exe.code_model = std.builtin.CodeModel.kernel;
|
||||
exe.code_model = std.builtin.CodeModel.kernel;
|
||||
exe.setLinkerScriptPath(getLinkerScript(ktarget));
|
||||
// exe.setOutputDir("bin");
|
||||
// exe.strip = true;
|
||||
|
|
|
|||
Loading…
Reference in New Issue