Skip to content

Commit 372b9be

Browse files
committed
update:compiler version to c++20 and c17
1 parent 4dcc129 commit 372b9be

File tree

9 files changed

+37
-5
lines changed

9 files changed

+37
-5
lines changed

XEngine_Source/XEngine_ModuleAuthorize/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
CC = g++ -Wall -std=c++17 -fPIC
1+
CC = g++ -Wall -std=c++20 -fPIC
22
PLATFORM = linux
33
PLATVER =
44
PLATDIR =

XEngine_Source/XEngine_ModuleConfigure/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
CC = g++ -Wall -std=c++17 -fPIC
1+
CC = g++ -Wall -std=c++20 -fPIC
22
PLATFORM = linux
33
PLATVER =
44
PLATDIR =

XEngine_Source/XEngine_ModuleConfigure/XEngine_ModuleConfigure.vcxproj

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@
9999
<PrecompiledHeader>Use</PrecompiledHeader>
100100
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
101101
<DisableSpecificWarnings>4819</DisableSpecificWarnings>
102+
<LanguageStandard>stdcpp20</LanguageStandard>
103+
<LanguageStandard_C>stdc17</LanguageStandard_C>
102104
</ClCompile>
103105
<Link>
104106
<SubSystem>Windows</SubSystem>
@@ -119,6 +121,8 @@
119121
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
120122
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
121123
<DisableSpecificWarnings>4819</DisableSpecificWarnings>
124+
<LanguageStandard>stdcpp20</LanguageStandard>
125+
<LanguageStandard_C>stdc17</LanguageStandard_C>
122126
</ClCompile>
123127
<Link>
124128
<SubSystem>Windows</SubSystem>
@@ -137,6 +141,8 @@
137141
<ConformanceMode>true</ConformanceMode>
138142
<PrecompiledHeader>Use</PrecompiledHeader>
139143
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
144+
<LanguageStandard>stdcpp20</LanguageStandard>
145+
<LanguageStandard_C>stdc17</LanguageStandard_C>
140146
</ClCompile>
141147
<Link>
142148
<SubSystem>Windows</SubSystem>
@@ -157,6 +163,8 @@
157163
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
158164
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
159165
<DisableSpecificWarnings>4819</DisableSpecificWarnings>
166+
<LanguageStandard>stdcpp20</LanguageStandard>
167+
<LanguageStandard_C>stdc17</LanguageStandard_C>
160168
</ClCompile>
161169
<Link>
162170
<SubSystem>Windows</SubSystem>

XEngine_Source/XEngine_ModuleProtocol/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
CC = g++ -Wall -std=c++17 -fPIC
1+
CC = g++ -Wall -std=c++20 -fPIC
22
PLATFORM = linux
33
PLATVER =
44
PLATDIR =

XEngine_Source/XEngine_ModuleProtocol/XEngine_ModuleProtocol.vcxproj

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,8 @@
9292
<ConformanceMode>true</ConformanceMode>
9393
<PrecompiledHeader>Use</PrecompiledHeader>
9494
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
95+
<LanguageStandard>stdcpp20</LanguageStandard>
96+
<LanguageStandard_C>stdc17</LanguageStandard_C>
9597
</ClCompile>
9698
<Link>
9799
<SubSystem>Windows</SubSystem>
@@ -110,6 +112,8 @@
110112
<ConformanceMode>true</ConformanceMode>
111113
<PrecompiledHeader>Use</PrecompiledHeader>
112114
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
115+
<LanguageStandard>stdcpp20</LanguageStandard>
116+
<LanguageStandard_C>stdc17</LanguageStandard_C>
113117
</ClCompile>
114118
<Link>
115119
<SubSystem>Windows</SubSystem>
@@ -128,6 +132,8 @@
128132
<ConformanceMode>true</ConformanceMode>
129133
<PrecompiledHeader>Use</PrecompiledHeader>
130134
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
135+
<LanguageStandard>stdcpp20</LanguageStandard>
136+
<LanguageStandard_C>stdc17</LanguageStandard_C>
131137
</ClCompile>
132138
<Link>
133139
<SubSystem>Windows</SubSystem>
@@ -146,6 +152,8 @@
146152
<ConformanceMode>true</ConformanceMode>
147153
<PrecompiledHeader>Use</PrecompiledHeader>
148154
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
155+
<LanguageStandard>stdcpp20</LanguageStandard>
156+
<LanguageStandard_C>stdc17</LanguageStandard_C>
149157
</ClCompile>
150158
<Link>
151159
<SubSystem>Windows</SubSystem>

XEngine_Source/XEngine_ModuleSession/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
CC = g++ -Wall -std=c++17 -fPIC
1+
CC = g++ -Wall -std=c++20 -fPIC
22
PLATFORM = linux
33
PLATVER =
44
PLATDIR =

XEngine_Source/XEngine_ModuleSession/XEngine_ModuleSession.vcxproj

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@
9494
<ConformanceMode>true</ConformanceMode>
9595
<PrecompiledHeader>Use</PrecompiledHeader>
9696
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
97+
<LanguageStandard>stdcpp20</LanguageStandard>
98+
<LanguageStandard_C>stdc17</LanguageStandard_C>
9799
</ClCompile>
98100
<Link>
99101
<SubSystem>Windows</SubSystem>
@@ -112,6 +114,8 @@
112114
<ConformanceMode>true</ConformanceMode>
113115
<PrecompiledHeader>Use</PrecompiledHeader>
114116
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
117+
<LanguageStandard>stdcpp20</LanguageStandard>
118+
<LanguageStandard_C>stdc17</LanguageStandard_C>
115119
</ClCompile>
116120
<Link>
117121
<SubSystem>Windows</SubSystem>
@@ -130,6 +134,8 @@
130134
<ConformanceMode>true</ConformanceMode>
131135
<PrecompiledHeader>Use</PrecompiledHeader>
132136
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
137+
<LanguageStandard>stdcpp20</LanguageStandard>
138+
<LanguageStandard_C>stdc17</LanguageStandard_C>
133139
</ClCompile>
134140
<Link>
135141
<SubSystem>Windows</SubSystem>
@@ -148,6 +154,8 @@
148154
<ConformanceMode>true</ConformanceMode>
149155
<PrecompiledHeader>Use</PrecompiledHeader>
150156
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
157+
<LanguageStandard>stdcpp20</LanguageStandard>
158+
<LanguageStandard_C>stdc17</LanguageStandard_C>
151159
</ClCompile>
152160
<Link>
153161
<SubSystem>Windows</SubSystem>

XEngine_Source/XEngine_ServiceApp/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
CC = g++ -Wall -std=c++17
1+
CC = g++ -Wall -std=c++20
22
PLATFORM = linux
33
PLATVER =
44
PLATDIR =

XEngine_Source/XEngine_ServiceApp/XEngine_ServiceApp.vcxproj

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,8 @@
9797
<PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;_WINDOWS;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
9898
<ConformanceMode>true</ConformanceMode>
9999
<DisableSpecificWarnings>4819</DisableSpecificWarnings>
100+
<LanguageStandard>stdcpp20</LanguageStandard>
101+
<LanguageStandard_C>stdc17</LanguageStandard_C>
100102
</ClCompile>
101103
<Link>
102104
<SubSystem>Console</SubSystem>
@@ -113,6 +115,8 @@
113115
<ConformanceMode>true</ConformanceMode>
114116
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
115117
<DisableSpecificWarnings>4819</DisableSpecificWarnings>
118+
<LanguageStandard>stdcpp20</LanguageStandard>
119+
<LanguageStandard_C>stdc17</LanguageStandard_C>
116120
</ClCompile>
117121
<Link>
118122
<SubSystem>Console</SubSystem>
@@ -127,6 +131,8 @@
127131
<SDLCheck>true</SDLCheck>
128132
<PreprocessorDefinitions>_DEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
129133
<ConformanceMode>true</ConformanceMode>
134+
<LanguageStandard>stdcpp20</LanguageStandard>
135+
<LanguageStandard_C>stdc17</LanguageStandard_C>
130136
</ClCompile>
131137
<Link>
132138
<SubSystem>Console</SubSystem>
@@ -143,6 +149,8 @@
143149
<ConformanceMode>true</ConformanceMode>
144150
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
145151
<DisableSpecificWarnings>4819</DisableSpecificWarnings>
152+
<LanguageStandard>stdcpp20</LanguageStandard>
153+
<LanguageStandard_C>stdc17</LanguageStandard_C>
146154
</ClCompile>
147155
<Link>
148156
<SubSystem>Console</SubSystem>

0 commit comments

Comments
 (0)