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

Refactor CPU_EXTENSIONS logic for MSVC with Clang #69

Merged
merged 12 commits into from
Jul 14, 2023
Merged

Refactor CPU_EXTENSIONS logic for MSVC with Clang #69

merged 12 commits into from
Jul 14, 2023

Conversation

waahm7
Copy link
Contributor

@waahm7 waahm7 commented Jul 5, 2023

Description of changes:
visualc_crc32c_sse42.c fails to compile on MSVC with Clang because we don't compile it with the AVX or AVX2 flag. Since inline assembly is supported by Clang even on MSVC, first check if we can use that. This will fix the #66.

TODO: fix warnings and add CI for MSVC with Clang.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@waahm7 waahm7 changed the title Refactor MSVC logic for Clang Refactor CPU_EXTENSIONS logic for MSVC with Clang Jul 5, 2023
CMakeLists.txt Outdated Show resolved Hide resolved
file(GLOB AWS_ARCH_SRC
"source/intel/asm/*.c"
if(AWS_ARCH_INTEL)
# First, check if inline assembly is available. Inline assembly can also be supported by MSVC if the compiler in use is Clang.
Copy link
Contributor

@graebm graebm Jul 13, 2023

Choose a reason for hiding this comment

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

dogs and cats
living together
mass hysteria

@waahm7 waahm7 merged commit 321b805 into main Jul 14, 2023
@waahm7 waahm7 deleted the msvc-clang branch July 14, 2023 18:08
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.

2 participants