3
24
Fork
You've already forked krabby
0

Generate the default cfg set #9

Open
opened 2025年12月08日 00:14:39 +01:00 by bal-e · 0 comments
Owner
Copy link

Regardless of feature flags, Rust has a set of cfg predicates automatically enabled (see rustc --print cfg). We should generate this set, by storing the right options across systems and architectures. As long as the basic infrastructure is set up, we only need to fill in support for our common targets (e.g. x86_64 Linux).

At the end of the day, src/nameres/cfg.rs should have a function to generate this set. The actual system/architecture tables may need to go elsewhere (codegen will eventually rely on them too).

Regardless of feature flags, Rust has a set of `cfg` predicates automatically enabled (see `rustc --print cfg`). We should generate this set, by storing the right options across systems and architectures. As long as the basic infrastructure is set up, we only need to fill in support for our common targets (e.g. `x86_64` Linux). At the end of the day, `src/nameres/cfg.rs` should have a function to generate this set. The actual system/architecture tables may need to go elsewhere (codegen will eventually rely on them too).
Sign in to join this conversation.
No Branch/Tag specified
main
decl-macros
diagnostics
query
nameres
type-ir
scalar-lexer
No results found.
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
bal-e/krabby#9
Reference in a new issue
bal-e/krabby
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?