| Index: base/BUILD.gn
|
| diff --git a/base/BUILD.gn b/base/BUILD.gn
|
| index 925dd7a0d944e7ad3f8b3f4a4c01f79fc40bc889..747907ca5aadd4b389acc53d71c26aebcff0b94d 100644
|
| --- a/base/BUILD.gn
|
| +++ b/base/BUILD.gn
|
| @@ -1538,6 +1538,16 @@ if (is_win) {
|
| ]
|
| }
|
|
|
| + shared_library("scoped_handle_test_dll") {
|
| + sources = [
|
| + "win/scoped_handle_test_dll.cc",
|
| + "win/scoped_handle_test_dll.h",
|
| + ]
|
| + deps = [
|
| + ":base",
|
| + ]
|
| + }
|
| +
|
| if (target_cpu == "x64") {
|
| # Must be a shared library so that it can be unloaded during testing.
|
| shared_library("base_profiler_test_support_library") {
|
| @@ -1901,9 +1911,12 @@ test("base_unittests") {
|
| set_sources_assignment_filter(sources_assignment_filter)
|
| }
|
|
|
| - if (is_win && target_cpu == "x64") {
|
| - sources += [ "profiler/win32_stack_frame_unwinder_unittest.cc" ]
|
| - deps += [ ":base_profiler_test_support_library" ]
|
| + if (is_win) {
|
| + deps += [ "//base:scoped_handle_test_dll" ]
|
| + if (target_cpu == "x64") {
|
| + sources += [ "profiler/win32_stack_frame_unwinder_unittest.cc" ]
|
| + deps += [ ":base_profiler_test_support_library" ]
|
| + }
|
| }
|
|
|
| if (use_experimental_allocator_shim) {
|
|
|