Skip to content

Conversation

@mstorsjo
Copy link
Member

Instead respect what the toolchain default is (or what the user sets via CMAKE_CXX_FLAGS).

This fixes builds with libcxx, with mingw toolchains targeting msvcrt.dll, after 5d8be4c; after that commit, the libcxx public headers reference symbols such as iswspace_l, which are unavailable when targeting msvcrt.dll on older versions of Windows (it's only available in msvcrt.dll since Windows Vista).

Instead respect what the toolchain default is (or what the user
sets via CMAKE_CXX_FLAGS).

This fixes builds with libcxx, with mingw toolchains targeting
msvcrt.dll, after 5d8be4c; after
that commit, the libcxx public headers reference symbols such as
iswspace_l, which are unavailable when targeting msvcrt.dll on
older versions of Windows (it's only available in msvcrt.dll
since Vista).
@llvmbot llvmbot added the openmp:libomp OpenMP host runtime label Nov 11, 2024
@shiltian
Copy link
Contributor

This looks reasonable to me, but I'm not a Windows expert so I'll leave it to other folks.

@mstorsjo
Copy link
Member Author

Ping

Copy link

@jpeyton52 jpeyton52 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me

@mstorsjo mstorsjo merged commit dc3156d into llvm:main Nov 16, 2024
8 checks passed
@mstorsjo mstorsjo deleted the openmp-skip-win32-winnt branch November 16, 2024 09:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

openmp:libomp OpenMP host runtime

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants