--- src/3rdparty/chromium/third_party/crc32c/BUILD.gn.orig 2024-10-28 12:54:45 UTC +++ src/3rdparty/chromium/third_party/crc32c/BUILD.gn @@ -16,13 +16,10 @@ config("crc32c_config") { ] defines = [ - "BYTE_ORDER_BIG_ENDIAN=0", + "BYTE_ORDER_BIG_ENDIAN=__BYTE_ORDER__==__ORDER_BIG_ENDIAN__", "CRC32C_TESTS_BUILT_WITH_GLOG=0", ] - # If we ever support big-endian builds, add logic to conditionally enable - # BYTE_ORDER_BIG_ENDIAN. - if (target_cpu == "x86" || target_cpu == "x64") { defines += [ "HAVE_MM_PREFETCH=1", @@ -122,6 +119,10 @@ source_set("crc32c_arm64") { "-target-feature", "-Xclang", "+crypto", + "-Xclang", + "-target-feature", + "-Xclang", + "+aes", ] } else { cflags = [ "-march=armv8-a+crc+crypto" ]