Skip to content

Commit e97bd6d

Browse files
authored
Fix build of IJW test after VS upgrade (#92878)
The latest build of VS carries a C/C++ compiler which produces warning C5271: ``` src\native\corehost\test\ijw\ijw.cpp(6): warning C5271: consider replacing #using <System.Console.dll> with command line argument /FU "F:\dotnet\runtime2\.dotnet\packs\Microsoft.NETCore.App.Ref\8.0.0-rc.1.23414.4\ref\net8.0\System.Console.dll" src\native\corehost\test\ijw\ijw.cpp(7): warning C5271: consider replacing #using <System.Runtime.Loader.dll> with command line argument /FU "F:\dotnet\runtime2\.dotnet\packs\Microsoft.NETCore.App.Ref\8.0.0-rc.1.23414.4\ref\net8.0\System.Runtime.Loader.dll" ``` This breaks the build on Windows. For now I'm disabling the warning as the real fix is more complex (we would need to calculate the path to the required assemblies in CMake somehow).
1 parent a590cb4 commit e97bd6d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

eng/native/ijw/IJW.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ if (CLR_CMAKE_HOST_WIN32)
4545

4646
# 4365 - signed/unsigned mismatch
4747
# 4679 - Could not import member. This is an issue with IJW and static abstract methods in interfaces.
48-
add_compile_options(/wd4365 /wd4679)
48+
add_compile_options(/wd4365 /wd4679 /wd5271)
4949

5050
# IJW
5151
add_compile_options(/clr:netcore)

0 commit comments

Comments
 (0)