fix build.zig logic for -target-cpu and -target-feature
fix a false negative for detecting the ability to emit these flags. it matters for stage0/stage1 on aarch64master
parent
504ce86ac9
commit
3ed52e5453
|
@ -1978,6 +1978,9 @@ pub const LibExeObjStep = struct {
|
||||||
|
|
||||||
const all_features = self.target.getArch().allFeaturesList();
|
const all_features = self.target.getArch().allFeaturesList();
|
||||||
var populated_cpu_features = cross.cpu_features.cpu.features;
|
var populated_cpu_features = cross.cpu_features.cpu.features;
|
||||||
|
if (self.target.getArch().subArchFeature()) |sub_arch_index| {
|
||||||
|
populated_cpu_features.addFeature(sub_arch_index);
|
||||||
|
}
|
||||||
populated_cpu_features.populateDependencies(all_features);
|
populated_cpu_features.populateDependencies(all_features);
|
||||||
|
|
||||||
if (populated_cpu_features.eql(cross.cpu_features.features)) {
|
if (populated_cpu_features.eql(cross.cpu_features.features)) {
|
||||||
|
|
Loading…
Reference in New Issue