This repository was archived by the owner on Feb 25, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change 22# Use of this source code is governed by a BSD-style license that can be
33# found in the LICENSE file.
44
5+ import (" //flutter/flutter_vma/config.gni" )
6+
57source_set (" flutter_vma" ) {
68 sources = [
79 " flutter_vma.cc" ,
810 " flutter_vma.h" ,
911 ]
1012
13+ if (disable_vma_stl_shared_mutex ) {
14+ defines = [ " VMA_USE_STL_SHARED_MUTEX=0" ]
15+ }
16+
1117 deps = [
1218 " //third_party/vulkan-deps/vulkan-headers/src:vulkan_headers" ,
1319 " //third_party/vulkan_memory_allocator" ,
Original file line number Diff line number Diff line change @@ -438,6 +438,10 @@ def to_gn_args(args):
438438 gn_args['skia_use_vulkan'] = True
439439 gn_args['skia_use_vma'] = False
440440 gn_args['shell_enable_vulkan'] = True
441+ # Disable VMA's use of std::shared_mutex in environments where the
442+ # standard library doesn't support it.
443+ if args.target_os == 'ios' or sys.platform.startswith(('cygwin', 'win')):
444+ gn_args['disable_vma_stl_shared_mutex'] = True
441445
442446 # We should not need a special case for x86, but this seems to introduce text relocations
443447 # even with -fPIC everywhere.
You can’t perform that action at this time.
0 commit comments