Skip to content

Commit

Permalink
Fix build on aarch64 gcc
Browse files Browse the repository at this point in the history
Summary: Fix build errors when targeting aarch64 w/ gcc.

Reviewed By: r1mikey

Differential Revision: D65792446

fbshipit-source-id: 0e538648b81f76724acf03cd9fe42efa8216c8ed
  • Loading branch information
andrewjcg authored and facebook-github-bot committed Nov 13, 2024
1 parent 6e30e17 commit 5149298
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion folly/external/fast-crc32/BUCK
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ cpp_library(
],
arch_preprocessor_flags = {
"aarch64": [
"-march=armv8-a+crypto+crc+sha3",
"-march=armv8.2-a+crypto+crc+sha3",
],
},
deps = [
Expand Down
2 changes: 1 addition & 1 deletion folly/external/fast-crc32/neon_crc32c_v3s4x2e_v2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ CRC_AINLINE uint64x2_t crc_shift(uint32_t crc, size_t nbytes) {
return clmul_scalar(crc, xnmodp(nbytes * 8 - 33));
}

FOLLY_TARGET_ATTRIBUTE("crc")
FOLLY_TARGET_ATTRIBUTE("+crc")
CRC_EXPORT bool has_neon_crc32c_v3s4x2e_v2() {
static ElfHwCaps caps;

Expand Down
2 changes: 1 addition & 1 deletion folly/external/fast-crc32/neon_eor3_crc32c_v8s2x4_s3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ CRC_AINLINE uint64x2_t crc_shift(uint32_t crc, size_t nbytes) {
return clmul_scalar(crc, xnmodp(nbytes * 8 - 33));
}

FOLLY_TARGET_ATTRIBUTE("crc")
FOLLY_TARGET_ATTRIBUTE("+crc")
CRC_EXPORT bool has_neon_eor3_crc32c_v8s2x4_s3() {
static ElfHwCaps caps;

Expand Down

0 comments on commit 5149298

Please sign in to comment.