Fixes build failure caused by red_zone = false emitting -fno-red-zone instead of -mno-red-zone
constobject_options:std.Build.ObjectOptions=.{.name="pside_zig",.use_llvm=true,.root_module=b.createModule(.{.root_source_file=b.path("src/kernelspace/main.zig"),.target=kernel_target,.optimize=kernel_optimize,// ....red_zone=false,// ...},}),};install
└─ install generated to lib/modules/7.0.10-arch1-1/extra/pside.ko
└─ run make
└─ WriteFile pside_zig.o
└─ compile obj pside_zig ReleaseFast x86_64-freestanding-none failure
error: error: unrecognized parameter: -fno-red-zone
An argument could be made to move the flag to std.Target.*.featureSet, this will change the api for the feature, so if it's the desired implementation please let me know
Fixes build failure caused by `red_zone = false` emitting `-fno-red-zone` instead of `-mno-red-zone`
```zig
const object_options: std.Build.ObjectOptions = .{
.name = "pside_zig",
.use_llvm = true,
.root_module = b.createModule(.{
.root_source_file = b.path("src/kernelspace/main.zig"),
.target = kernel_target,
.optimize = kernel_optimize,
// ...
.red_zone = false,
// ...
},
}),
};
```
```❯ zig build
install
└─ install generated to lib/modules/7.0.10-arch1-1/extra/pside.ko
└─ run make
└─ WriteFile pside_zig.o
└─ compile obj pside_zig ReleaseFast x86_64-freestanding-none failure
error: error: unrecognized parameter: -fno-red-zone
```
An argument could be made to move the flag to ` std.Target.*.featureSet`, this will change the api for the feature, so if it's the desired implementation please let me know