-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c56cd6e
commit 81c0985
Showing
4 changed files
with
34 additions
and
5 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,15 @@ | ||
use helix_loader::grammar::{build_grammars, fetch_grammars}; | ||
extern crate winres; | ||
|
||
fn main() { | ||
if std::env::var("HELIX_DISABLE_AUTO_GRAMMAR_BUILD").is_err() { | ||
fetch_grammars().expect("Failed to fetch tree-sitter grammars"); | ||
build_grammars(Some(std::env::var("TARGET").unwrap())) | ||
.expect("Failed to compile tree-sitter grammars"); | ||
} | ||
if cfg!(target_os = "windows") { | ||
let mut res = winres::WindowsResource::new(); | ||
res.set_icon("../contrib/helix-256p.ico"); | ||
res.compile().unwrap(); | ||
} | ||
} |