diff options
author | Roland Reichwein <mail@reichwein.it> | 2021-12-30 17:11:02 +0100 |
---|---|---|
committer | Roland Reichwein <mail@reichwein.it> | 2021-12-30 17:11:02 +0100 |
commit | ae7b430afd1239947b8f8b2d9dc0ca72dbce91ac (patch) | |
tree | 345a5dce9f37e33f78b4805532ffec66752cbe7b | |
parent | b9833fd7e6c6f3373978d56f7a7b00ebdb02a94b (diff) |
Make source and execution character sets explicit (UTF-8)
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | msbuild/compiler.props | 1 |
2 files changed, 2 insertions, 1 deletions
@@ -56,7 +56,7 @@ LIBS+=-fuse-ld=lld endif endif -CXXFLAGS+=-Wall -Wno-deprecated-declarations -Iinclude -std=$(STANDARD) +CXXFLAGS+=-Wall -Wno-deprecated-declarations -finput-charset=UTF-8 -fexec-charset=UTF-8 -Iinclude -std=$(STANDARD) LDLIBS+=\ -lboost_context \ diff --git a/msbuild/compiler.props b/msbuild/compiler.props index 6f5fcc5..97adb40 100644 --- a/msbuild/compiler.props +++ b/msbuild/compiler.props @@ -5,6 +5,7 @@ <AdditionalIncludeDirectories>D:\ext\winnt\boost\boost-1_78_0;..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> <AdditionalOptions>/utf-8 /D NOMINMAX /FS %(AdditionalOptions)</AdditionalOptions> <AdditionalOptions>/Zc:__cplusplus %(AdditionalOptions)</AdditionalOptions> + <AdditionalOptions>/utf-8 %(AdditionalOptions)</AdditionalOptions> <LanguageStandard>stdcpp20</LanguageStandard> <ConformanceMode>true</ConformanceMode> <PreprocessorDefinitions>_SILENCE_ALL_CXX17_DEPRECATION_WARNINGS;_SILENCE_ALL_CXX20_DEPRECATION_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions> |