mirror of
https://github.com/dart-lang/sdk
synced 2024-09-16 01:21:07 +00:00
e33d023fa0
doesn't show these formatting changes as diffs. Change-Id: I69ccbf4adabc66d88371cece785a2c1bce60f133 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/138962 Reviewed-by: Ryan Macnak <rmacnak@google.com>
29 lines
872 B
Plaintext
29 lines
872 B
Plaintext
# Copyright 2018 The Dart project Authors. All rights reserved.
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
|
|
import("//build/config/android/config.gni")
|
|
|
|
config("cpu_features_include") {
|
|
include_dirs = [ "$android_ndk_root/sources/android/cpufeatures" ]
|
|
}
|
|
|
|
config("cpu_features_warnings") {
|
|
if (is_clang) {
|
|
# cpu-features.c has few unused functions on x86 b/26403333
|
|
cflags = [ "-Wno-unused-function" ]
|
|
}
|
|
}
|
|
|
|
source_set("cpu_features") {
|
|
sources = [ "$android_ndk_root/sources/android/cpufeatures/cpu-features.c" ]
|
|
public_configs = [ ":cpu_features_include" ]
|
|
configs -= [ "//build/config/compiler:chromium_code" ]
|
|
configs += [
|
|
"//build/config/compiler:no_chromium_code",
|
|
|
|
# Must be after no_chromium_code for warning flags to be ordered correctly.
|
|
":cpu_features_warnings",
|
|
]
|
|
}
|