authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-01-28 14:54:34-05:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-01-28 14:54:34-05:00
log3ed52e5453a6971c6a3db0846f503478922d4ea5
tree9f1ee884f49d85c227369d7513c748058a0c7091
parent504ce86ac991938fcd0544d771c7743833060dda
signaturelock-open Commit is signed but in an unrecognized format.

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 aarch64

1 files changed, 3 insertions(+), 0 deletions(-)

lib/std/build.zig+3
......@@ -1978,6 +1978,9 @@ pub const LibExeObjStep = struct {
19781978
19791979 const all_features = self.target.getArch().allFeaturesList();
19801980 var populated_cpu_features = cross.cpu_features.cpu.features;
1981 if (self.target.getArch().subArchFeature()) |sub_arch_index| {
1982 populated_cpu_features.addFeature(sub_arch_index);
1983 }
19811984 populated_cpu_features.populateDependencies(all_features);
19821985
19831986 if (populated_cpu_features.eql(cross.cpu_features.features)) {