Skip to content
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

Expose is_flag_supported #277

Closed
kornelski opened this issue Dec 29, 2017 · 1 comment
Closed

Expose is_flag_supported #277

kornelski opened this issue Dec 29, 2017 · 1 comment

Comments

@kornelski
Copy link
Contributor

kornelski commented Dec 29, 2017

Would it be possible to expose is_flag_supported in the public API?

I want to set -march={}, but the compiler may be older than the desired target architecture and reject it. I can't just use flag_if_supported, because if the flag is rejected, I don't want to ignore it. I want to set other flags as a fallback instead, and the fallback flags shouldn't be set unconditionally. (related to #268)

@alexcrichton
Copy link
Member

Seems plausible to me!

kornelski added a commit to kornelski/cc-rs that referenced this issue Jan 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants