mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
Force cl.exe to parse Odin source as utf-8.
This commit is contained in:
@@ -48,6 +48,9 @@ if "%2" == "1" (
|
|||||||
set odin_version_raw="dev-%curr_year%-%curr_month%"
|
set odin_version_raw="dev-%curr_year%-%curr_month%"
|
||||||
|
|
||||||
set compiler_flags= -nologo -Oi -TP -fp:precise -Gm- -MP -FC -EHsc- -GR- -GF
|
set compiler_flags= -nologo -Oi -TP -fp:precise -Gm- -MP -FC -EHsc- -GR- -GF
|
||||||
|
rem Parse source code as utf-8 even on shift-jis and other codepages
|
||||||
|
rem See https://learn.microsoft.com/en-us/cpp/build/reference/utf-8-set-source-and-executable-character-sets-to-utf-8?view=msvc-170
|
||||||
|
set compiler_flags= %compiler_flags% /utf-8
|
||||||
set compiler_defines= -DODIN_VERSION_RAW=\"%odin_version_raw%\"
|
set compiler_defines= -DODIN_VERSION_RAW=\"%odin_version_raw%\"
|
||||||
|
|
||||||
if not exist .git\ goto skip_git_hash
|
if not exist .git\ goto skip_git_hash
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
/*
|
/*
|
||||||
* SPDX-FileCopyrightText: (c) 2024 Feoramund
|
* SPDX-FileCopyrightText: (c) 2024 Feoramund
|
||||||
* SPDX-License-Identifier: BSD-3-Clause
|
* SPDX-License-Identifier: BSD-3-Clause
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user