-
Notifications
You must be signed in to change notification settings - Fork 43
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
apply the change from aws-c-auth #590
Changes from all commits
69a154b
fb9867d
8294818
1cec299
c77a84b
dcbb557
00dedb1
530d51b
f52c214
94dfebf
af6950b
5114b54
c8dcb53
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -40,6 +40,15 @@ if(UNIX AND NOT APPLE) | |||||
set(MY_ASSEMBLER_IS_TOO_OLD_FOR_512AVX ON CACHE BOOL "Disable AVX512 on old GCC that not supports it") | ||||||
endif() | ||||||
|
||||||
string(TOLOWER "${CMAKE_SYSTEM_PROCESSOR}" CMAKE_SYSTEM_PROCESSOR_LOWER) | ||||||
if(CMAKE_SYSTEM_PROCESSOR_LOWER MATCHES "x86_64|amd64|x86|i386|i686" AND CMAKE_SIZEOF_VOID_P EQUAL 4) | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why doesn't AWS-LC's CMakeLists.txt handle this, vs having every consumer handle it? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Seems weird to include x86_64 and amd64, since those are never 32bit.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think that aws-lc can still support machine without SSE2 with There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. https://github.com/awslabs/aws-crt-python/actions/runs/10689757684/job/29632625853 line 429
https://cmake.org/cmake/help/latest/variable/CMAKE_SYSTEM_PROCESSOR.html
So, I copied the logic from aws-lc. https://github.com/aws/aws-lc/blob/main/CMakeLists.txt#L791-L800 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh yeah, I see in the CMAKE_SYSTEM_PROCESSOR docs that it may not be correct (emphasis mine):
Maybe edit the comment to be more like the docs, instead of some ramble about Docker.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. or just
|
||||||
# Add -msse2 for x86-32bit because of https://github.com/aws/aws-lc/commit/6fe8dcbe96e580ea85233fdb98a142e42951b70b | ||||||
# CMAKE_SYSTEM_PROCESSOR is supposed to match the target architecture when cross-compiling, | ||||||
# but this is not guaranteed. See: https://cmake.org/cmake/help/v3.30/variable/CMAKE_SYSTEM_PROCESSOR.html | ||||||
# So, check for both CMAKE_SIZEOF_VOID_P and CMAKE_SYSTEM_PROCESSOR_LOWER for x86-32bit | ||||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -msse2") | ||||||
endif() | ||||||
|
||||||
add_subdirectory(aws-lc) | ||||||
endif() | ||||||
|
||||||
|
+12 −3 | .github/workflows/ci.yml | |
+4 −6 | .github/workflows/clang-format.yml | |
+47 −0 | format-check.py | |
+0 −24 | format-check.sh | |
+1 −1 | source/compression.c |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added this for aws/aws-lc@6fe8dcb to work on manylinux-1-x86, it's not released yet, but we will need this once it's