diff options
author | Kirill Chibisov <contact@kchibisov.com> | 2020-10-10 00:25:39 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-10 00:25:39 +0300 |
commit | 860adde457c64f4b0e432dd8c90d5b320f3f479f (patch) | |
tree | 75fd78c9b169a15b2bd89529e6961f0cd91cf3f9 /alacritty/src | |
parent | 67db9b228d3b6c63484ca4b8fcae577afc0ee22a (diff) | |
download | r-alacritty-860adde457c64f4b0e432dd8c90d5b320f3f479f.tar.gz r-alacritty-860adde457c64f4b0e432dd8c90d5b320f3f479f.tar.bz2 r-alacritty-860adde457c64f4b0e432dd8c90d5b320f3f479f.zip |
Fix feature checking in cross builds
Checking for target os in build.rs doesn't work, since build.rs
is running for host, so checking should be done in src. Thus moving
'compile_error!' check from build.rs to main.rs.
Diffstat (limited to 'alacritty/src')
-rw-r--r-- | alacritty/src/main.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/alacritty/src/main.rs b/alacritty/src/main.rs index 09296f60..19ae917b 100644 --- a/alacritty/src/main.rs +++ b/alacritty/src/main.rs @@ -8,6 +8,9 @@ // See https://msdn.microsoft.com/en-us/library/4cc7ya5b.aspx for more details. #![windows_subsystem = "windows"] +#[cfg(not(any(feature = "x11", feature = "wayland", target_os = "macos", windows)))] +compile_error!(r#"at least one of the "x11"/"wayland" features must be enabled"#); + #[cfg(target_os = "macos")] use std::env; use std::error::Error; |