-
I have a shader crate that has different functionality controlled by features. I need the host's There doesn't seem to be an api: extra_arg() appears to be for LLVM args, and setting |
Beta Was this translation helpful? Give feedback.
Answered by
LegNeato
Nov 14, 2024
Replies: 1 comment
-
Ok, looks like there isn't a built-in way but it respects std::env::set_var("RUSTGPU_RUSTFLAGS", "--cfg feature=\"whatever\""); |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
LegNeato
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ok, looks like there isn't a built-in way but it respects
RUSTGPU_RUSTFLAGS