Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MSVC][std:c++latest] EASTL failed to build with msvc due to error C2338 on Windows #491

Open
shizhuoer opened this issue Oct 17, 2022 · 0 comments

Comments

@shizhuoer
Copy link

Hi all,
EASTL failed to build with msvc due to error C2338 on Windows. Could you please help look at this issue?

Environment:
Windows: windows server 2019
VS: 2019

Repro steps:
1.open VS2019 x64 tools command
2.git clone https://github.com/electronicarts/EASTL F:\gitP\electronicarts\EASTL
3.cd F:\gitP\electronicarts\EASTL
4.mkdir build_amd64 & cd build_amd64
5.set VSCMD_SKIP_SENDTELEMETRY=1 & "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\Tools\VsDevCmd.bat" -host_arch=amd64 -arch=amd64 & set CL= /std:c++latest
6.cmake -G "Visual Studio 16 2019" -A x64 -DCMAKE_SYSTEM_VERSION=10.0.18362.0 -DEASTL_BUILD_TESTS:BOOL=ON -DEASTL_BUILD_BENCHMARK:BOOL=OFF .. 2>&1
7.set CL=%CL% /Zc:static_assert-
8.set CL=%CL% /Zc:char8_t-
9.msbuild /m /p:Platform=x64 /p:Configuration=Release EASTL.sln /t:Rebuild 2>&1

Error info:
F:\gitP\electronicarts\EASTL\test\source\TestStringView.cpp(12,15): error C2338: Building with char8_t tests e
nabled, but EA_CHAR8_UNIQUE evaluates to false. [F:\gitP\electronicarts\EASTL\build_amd64\test\EASTLTest.vcxproj]
F:\gitP\electronicarts\EASTL\test\source\TestString.cpp(17,15): error C2338: Building with char8_t tests enabl
ed, but EA_CHAR8_UNIQUE evaluates to false. [F:\gitP\electronicarts\EASTL\build_amd64\test\EASTLTest.vcxproj]

log
build.log

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant