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

fixes for clang build in Visual Studio #304

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

MomoDeve
Copy link

@MomoDeve MomoDeve commented Jan 5, 2021

I am building all my CMake projects with clang compiler & Visual Studio IDE. This PR includes fixes which allows RTTR to be built with LLVM toolchain on Windows.
Clang on Windows uses __declspec attribute to define imported/exported functions, not __attribute__
the clang compiler is invoked from visual studio if __clang__ & _MSC_VER macros are defined

for clang on Windows it still should be __declspec
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

Successfully merging this pull request may close these issues.

None yet

1 participant