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

Check that 'style' is compiled in a supported configuration. #19540

Merged
merged 1 commit into from Dec 10, 2017
Merged
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

Check that 'style' is compiled in a supported configuration.

Provide an explanatory error message when the compilation would fail because of missing or duplicate items.
  • Loading branch information
SimonSapin committed Dec 10, 2017
commit 890257ebc32128faa91975cf4605cef811844e5f
@@ -94,6 +94,15 @@ fn generate_properties() {
}

fn main() {
let gecko = cfg!(feature = "gecko");
let servo = cfg!(feature = "servo");
if !(gecko || servo) {
panic!("The style crate requires enabling one of its 'servo' or 'gecko' feature flags");
}
if gecko && servo {
panic!("The style crate does not support enabling both its 'servo' or 'gecko' \
feature flags at the same time.");
}
println!("cargo:rerun-if-changed=build.rs");
println!("cargo:out_dir={}", env::var("OUT_DIR").unwrap());
generate_properties();
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.