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

Fix building with clang-cl under visual studio. #60030

Merged
merged 1 commit into from
Aug 8, 2022

Conversation

akrieger
Copy link
Member

@akrieger akrieger commented Aug 8, 2022

Summary

None

Purpose of change

Building with clang-cl used to work. Now it doesn't. Make it work again.

Describe the solution

Don't include <cxxabi.h> when compiling in msvc mode, which means with cl.exe or clang-cl.exe. This used to be gated behind some logic that tested for _WIN32 and included different headers, but in the new location we should explicitly test _MSC_VER.

Describe alternatives you've considered

None crossed my mind.

Testing

Build with clang-cl integration in visual studio.

Additional context

This doesn't fix linking with lld-link, which seems to object to vcpkg's automatic lib arguments, but it allows compiling cataclysm lib at least.

@github-actions github-actions bot added [C++] Changes (can be) made in C++. Previously named `Code` json-styled JSON lint passed, label assigned by github actions astyled astyled PR, label is assigned by github actions BasicBuildPassed This PR builds correctly, label assigned by github actions labels Aug 8, 2022
@dseguin dseguin merged commit 4cfdd0b into CleverRaven:master Aug 8, 2022
@akrieger akrieger deleted the fix_clang_cl branch September 6, 2022 14:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
astyled astyled PR, label is assigned by github actions BasicBuildPassed This PR builds correctly, label assigned by github actions [C++] Changes (can be) made in C++. Previously named `Code` json-styled JSON lint passed, label assigned by github actions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants