Skip to content

Commit

Permalink
[naga] Use cfg aliases to enable naga::back::continue_forward.
Browse files Browse the repository at this point in the history
Rather than `feature = "blah"`, use the new `cfg` identifiers
introduced by the `cfg_aliases` invocation in `naga/build.rs` to
decide whether to compile the `naga::back::continue_forward` module,
which is only used by the GLSL and HLSL backends.

The `hlsl_out` `cfg` identifer has a more complex condition than just
`feature = "hlsl-out"`, introduced by #5919.

Fixes #6063.
  • Loading branch information
jimblandy authored and ErichDonGubler committed Jul 31, 2024
1 parent bfad205 commit 7ff80d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion naga/src/back/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ pub mod wgsl;
#[cfg(any(hlsl_out, msl_out, spv_out, glsl_out))]
pub mod pipeline_constants;

#[cfg(any(feature = "hlsl-out", feature = "glsl-out"))]
#[cfg(any(hlsl_out, glsl_out))]
mod continue_forward;

/// Names of vector components.
Expand Down

0 comments on commit 7ff80d6

Please sign in to comment.