introduce the concept of conflicting CPU features #12227
Labels
contributor friendly
This issue is limited in scope and/or knowledge of Zig internals.
enhancement
Solving this issue will likely involve adding new logic or components to the codebase.
frontend
Tokenization, parsing, AstGen, Sema, and Liveness.
Milestone
Extracted from #12220.
As pointed out in llvm/llvm-project#56351 (comment),
+x87
and+soft_float
is a pair of contradictory options. However, Zig currently has no way to denote such contradictions, meaning that a user might easily run into that problem above, and not realize that they could do this:This issue is to introduce a field to
std.Target.Cpu.Feature
for storing conflicts with other features, and then do one of two things:+soft_float
is encountered, zig would infer to automatically do-x87
-sse
-sse2
.The text was updated successfully, but these errors were encountered: