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", "/Isrc",
repo.files, repo.files,
"-Os", "-Os",
"/utf-8",
"/LD", "/LD",
} }
elseif string.match(compiler, "zig$") or string.match(compiler, "zig.exe$") then elseif string.match(compiler, "zig$") or string.match(compiler, "zig.exe$") then

View file

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

View file

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