SWDEV-491532 - handle clang-cl + SWDEV-545259 - Missing proper DLL entry points for a few symbols #212
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Change-Id: If043762b912a0c6a82951aeed620658f016bebb5## Associated JIRA ticket number/Github issue number
SWDEV-491532 - [CLR/PAL] Allow building with clang-cl on Windows
SWDEV-545259 - Missing proper DLL entry points for a few symbols
What type of PR is this? (check all applicable)
What were the changes?
#1 - add CMakeLists.txt support for clang-cl.
#2 - add missing global functions for a few DLL entry points.
Please see the commit logs of the individual commits.
Why are these changes needed?
CMakeLists change need so we can build with clang-cl instead of MSVC.
Entry points needed because dispatch table. clang-cl fails to link unless this is done properly.
Updated CHANGELOG?
I have no idea whether you would want to advertise support for building with clang-cl.
Added/Updated documentation?
Ditto.
Additional Checks
This depends on https://github.com/AMD-ROCm-Internal/hip/pull/280 . Without that, clang-cl notices that the declaration of hipDeviceGetTexture1DLinearMaxWidth in include/hip/hip_runtime_api.h in the hip repo does not match the definition in clr.