fix(compile): add /utf-8 flag on win+cl

This commit is contained in:
Christian Clason 2024-04-14 13:47:18 +02:00
parent bfa217af76
commit 497208692f
3 changed files with 8 additions and 7 deletions

View file

@ -91,6 +91,7 @@ function M.select_compiler_args(repo, compiler)
"/Isrc",
repo.files,
"-Os",
"/utf-8",
"/LD",
}
elseif string.match(compiler, "zig$") or string.match(compiler, "zig.exe$") then

View file

@ -84,7 +84,7 @@
; Keywords, operators, includes
[
"forall"
; "∀" ; utf-8 is not cross-platform safe
"∀"
] @keyword.repeat
(pragma) @keyword.directive

View file

@ -58,15 +58,15 @@
"="
"|"
"::"
; "∷"
"∷"
"=>"
; "⇒"
"⇒"
"<="
; "⇐"
"⇐"
"->"
; "→"
"→"
"<-"
; "←"
"←"
"\\"
"`"
"@"
@ -102,7 +102,7 @@
"do"
"ado"
"forall"
; "∀" ; utf-8 is not cross-platform safe
"∀"
"infix"
"infixl"
"infixr"