diff options
Diffstat (limited to 'alacritty/build.rs')
-rw-r--r-- | alacritty/build.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/alacritty/build.rs b/alacritty/build.rs index 3c58b0cf..16f3a2b3 100644 --- a/alacritty/build.rs +++ b/alacritty/build.rs @@ -18,6 +18,9 @@ use std::env; use std::fs::File; use std::path::Path; +#[cfg(windows)] +use embed_resource; + fn main() { let hash = rustc_tools_util::get_commit_hash().unwrap_or_default(); println!("cargo:rustc-env=GIT_HASH={}", hash); @@ -28,4 +31,7 @@ fn main() { Registry::new(Api::Gl, (4, 5), Profile::Core, Fallbacks::All, ["GL_ARB_blend_func_extended"]) .write_bindings(GlobalGenerator, &mut file) .unwrap(); + + #[cfg(windows)] + embed_resource::compile("../extra/windows/windows.rc"); } |