-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
introduce a linux android macro #10432
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
I'm not able to identify why this doesn't work in the CI, did you investigate using cfg-aliases? #9559 |
|
Did some further research, its failing because the #[cfg(...)] attribute evaluates based on the host machine (where the build script runs), not the target machine. This should work: I would love to do something similar for all of the BSD os's, it would make stty much cleaner and easier to read |
|
Actually two issues here, the cross compilation and that this will only set that config for the parent crate and you would need this in a build.rs for every crate to do this. How about adding this to the Cargo.toml instead? |
|
Actually that Cargo.toml rustflags is not ideal either since it wont work for anyone that wants to use any of the utilities as a dependency. Not really any great options here. |
|
probably why we haven't done it before :) |
|
|
|
I know the name |
|
|
That's what |
|
Other suggestions, |
Might be worth considering that Android might not always use a linux kernel. For example, a future release of Android might be based on So |
|
I'm leaning toward |
No description provided.