Add Build Option to Control CPU Extension Usage (MinGW/Clang)#1236
Open
eranif wants to merge 1 commit intoawslabs:mainfrom
Open
Add Build Option to Control CPU Extension Usage (MinGW/Clang)#1236eranif wants to merge 1 commit intoawslabs:mainfrom
eranif wants to merge 1 commit intoawslabs:mainfrom
Conversation
Introduce a new CMake configuration option (USE_CPU_EXTENSIONS) that conditionally defines HAS_CPU_EXTENSTIONS at compile time. When disabled, SIMD-optimized routines (such as SSE4.1 base64 encoding/decoding) are excluded from the build by updating the preprocessor guard in encoding.c to check both USE_SIMD_ENCODING and the new HAS_CPU_EXTENSTIONS flag. This change allows builds to opt out of CPU-specific optimizations when targeting platforms without the required instruction set support. * CMake build configuration * SIMD encoding feature guards ** Generated by CodeLite. ** Signed-off-by: Eran Ifrah <eran@codelite.org>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Introduce a new CMake configuration option (USE_CPU_EXTENSIONS) that conditionally defines HAS_CPU_EXTENSTIONS at compile time. When disabled, SIMD-optimized routines (such as SSE4.1 base64 encoding/decoding) are excluded from the build by updating the preprocessor guard in encoding.c to check both USE_SIMD_ENCODING and the new HAS_CPU_EXTENSTIONS flag.
This change allows builds to opt out of CPU-specific optimizations when targeting platforms without the required instruction set support.
This fix is required in order to build
aws-sdk-cppon MinGW/Clang64 (Windows 11).** Generated by CodeLite. **
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.