| Index: base/BUILD.gn
|
| diff --git a/base/BUILD.gn b/base/BUILD.gn
|
| index 6e929147fa8e438b71da61d09e69392306979cfa..bae243270cb3fb6bdfa4c11bb53f06b11deb711a 100644
|
| --- a/base/BUILD.gn
|
| +++ b/base/BUILD.gn
|
| @@ -1213,6 +1213,26 @@ component("base") {
|
| "rand_util_nacl.cc",
|
| "synchronization/read_write_lock_nacl.cc",
|
| ]
|
| +
|
| + # Add stuff that doesn't work in NaCl.
|
| + sources += [
|
| + # PartitionAlloc uses SpinLock, which doesn't work in NaCl (see below).
|
| + "allocator/partition_allocator/address_space_randomization.cc",
|
| + "allocator/partition_allocator/address_space_randomization.h",
|
| + "allocator/partition_allocator/page_allocator.cc",
|
| + "allocator/partition_allocator/page_allocator.h",
|
| + "allocator/partition_allocator/partition_alloc.cc",
|
| + "allocator/partition_allocator/partition_alloc.h",
|
| + "allocator/partition_allocator/partition_allocator.cc",
|
| + "allocator/partition_allocator/partition_allocator.h",
|
| + "allocator/partition_allocator/partitions.cc",
|
| + "allocator/partition_allocator/partitions.h",
|
| +
|
| + # SpinLock uses GNU-style inline assembly, which the pnacl-clang++
|
| + # compiler doesn't allow.
|
| + "synchronization/spin_lock.cc",
|
| + "synchronization/spin_lock.h",
|
| + ]
|
| }
|
|
|
| # Windows.
|
|
|