Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(17)

Unified Diff: base/BUILD.gn

Issue 2519183002: Move WTF::SpinLock to base::SpinLock. (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | base/synchronization/spin_lock.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/BUILD.gn
diff --git a/base/BUILD.gn b/base/BUILD.gn
index 6e929147fa8e438b71da61d09e69392306979cfa..3059a19736fc350b00fca03cd49a62447344df47 100644
--- a/base/BUILD.gn
+++ b/base/BUILD.gn
@@ -19,6 +19,7 @@
import("//build/buildflag_header.gni")
import("//build/config/allocator.gni")
+import("//build/config/arm.gni")
import("//build/config/chromecast_build.gni")
import("//build/config/clang/clang.gni")
import("//build/config/compiler/compiler.gni")
@@ -1215,6 +1216,15 @@ component("base") {
]
}
+ # SpinLock uses inline assembly that doesn't work on NaCl, and for which there
+ # is no code for ARMv6.
+ if (!is_nacl && (current_cpu != "arm" || arm_version >= 7)) {
+ sources += [
+ "synchronization/spin_lock.cc",
+ "synchronization/spin_lock.h",
+ ]
+ }
+
# Windows.
if (is_win) {
sources += [
« no previous file with comments | « no previous file | base/synchronization/spin_lock.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698