xref: /aosp_15_r20/external/cronet/base/allocator/partition_allocator/src/partition_alloc/shim/empty.cc (revision 6777b5387eb2ff775bb5750e3f5d96f37fb7352b)
1 // Copyright 2023 The Chromium Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 // This empty.cc is built when use_allocator_shim is false to avoid
6 // the situation: no object files are linked to build allocator_shim.dll.
7 // If allocator_shim target's sources has only header files, no object
8 // files will be generated and we will see the following error:
9 // "lld_link:error: <root>: undefined symbol: _DllMainCRTStartup."
10