diff --git a/third_party/abseil-cpp/absl/random/internal/BUILD.gn b/third_party/abseil-cpp/absl/random/internal/BUILD.gn index 119e74aa474..5f28dfd56fa 100644 --- a/third_party/abseil-cpp/absl/random/internal/BUILD.gn +++ b/third_party/abseil-cpp/absl/random/internal/BUILD.gn @@ -225,7 +225,7 @@ absl_source_set("randen_hwaes") { "//third_party/abseil-cpp/absl/base:config", ] visibility = ["//third_party/abseil-cpp/absl/random/*"] - if (use_cobalt_customizations) { + if (is_starboard) { sources -= [ "randen_detect.cc" ] sources += [ "randen_detect_starboard.cc" ] deps += [ "//starboard:starboard_headers_only" ] diff --git a/third_party/abseil-cpp/absl/random/internal/randen_detect_starboard.cc b/third_party/abseil-cpp/absl/random/internal/randen_detect_starboard.cc index 85194d57f48..0d37bba6f4f 100644 --- a/third_party/abseil-cpp/absl/random/internal/randen_detect_starboard.cc +++ b/third_party/abseil-cpp/absl/random/internal/randen_detect_starboard.cc @@ -39,18 +39,14 @@ bool CPUSupportsRandenHwAes() { if (!result) { return false; } -#if SB_IS(ARCH_ARM) || SB_IS(ARCH_ARM64) if (features.architecture == kSbCPUFeaturesArchitectureArm || features.architecture == kSbCPUFeaturesArchitectureArm64) { return features.arm.has_neon && features.arm.has_aes; } -#endif -#if SB_IS(ARCH_X86) || SB_IS(ARCH_X64) if (features.architecture == kSbCPUFeaturesArchitectureX86 || features.architecture == kSbCPUFeaturesArchitectureX86_64) { return features.x86.has_aesni; } -#endif return false; }