https://bugs.winehq.org/show_bug.cgi?id=54130
Bug ID: 54130 Summary: broken msvc __has_include. Product: Wine Version: 7.0.1 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: major Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: pawel_sikora@zoho.com Distribution: ---
hi,
the recent wine-stable versions (6.0.4/7.0.1) break __has_include feature [1] inside cl.exe (msvc-2022) while wine-stable 5.0.4 works fine. i've prepared docker-based testcase that contains msvc-2022 subset extracted from official microsoft virtualbox image [2] and few sources/scripts.
steps to reproduce: - download .7z archives from [3] and extract. - build docker image: ./docker-build.sh - run docker container:./docker-run.sh - run testcase: wine cmd /c bugme
wine-5.0.4 results (expected):
B:>A:\VC\Tools\MSVC\14.34.31933\bin\Hostx64\x64\cl.exe -IB:\sources\cosim\cmodel_h -FoB:\bugme.obj -c B:\bugme.cpp /nologo bugme.cpp compiler supports __has_include there's no cxxabi.h - OK.
wine-6.0.4/7.0.1 results (buggy):
B:>A:\VC\Tools\MSVC\14.34.31933\bin\Hostx64\x64\cl.exe -IB:\sources\cosim\cmodel_h -FoB:\bugme.obj -c B:\bugme.cpp /nologo bugme.cpp compiler supports __has_include compiler reports cxxabi.h existence try #include... B:\bugme.cpp(6): fatal error C1083: Cannot open include file: 'cxxabi.h': No such file or directory
links: [1] https://en.cppreference.com/w/cpp/preprocessor/include [2] https://developer.microsoft.com/en-us/windows/downloads/virtual-machines/ [3] https://drive.google.com/drive/folders/1asoZguCucA6ownwUn0r1KxeyqwY-ABVp?usp...