mirror of
				https://bitbucket.org/chromiumembedded/cef
				synced 2025-06-05 21:39:12 +02:00 
			
		
		
		
	Windows: Fix cef_sandbox.lib unresolved external throw_bad_optional_access
Fixes the following linker error with the official cef_sandbox.lib build: cef_sandbox.lib(task_queue_selector.obj) : error LNK2001: unresolved external symbol "void __cdecl absl::optional_internal::throw_bad_optional_access(void)" (?throw_bad_optional_access@optional_internal@absl@@YAXXZ)
This commit is contained in:
		@@ -41,13 +41,24 @@ void cef_sandbox_info_destroy(void* sandbox_info) {
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
#if BUILDFLAG(IS_CEF_SANDBOX_BUILD)
 | 
			
		||||
// Implementation from third_party/abseil-cpp/absl/types/bad_variant_access.cc
 | 
			
		||||
// to avoid bringing in absl dependencies.
 | 
			
		||||
// Avoid bringing in absl dependencies.
 | 
			
		||||
namespace absl {
 | 
			
		||||
 | 
			
		||||
// From third_party/abseil-cpp/absl/types/bad_optional_access.cc
 | 
			
		||||
namespace optional_internal {
 | 
			
		||||
void throw_bad_optional_access() {
 | 
			
		||||
  LOG(FATAL) << "Bad optional access";
 | 
			
		||||
  abort();
 | 
			
		||||
}
 | 
			
		||||
}  // namespace optional_internal
 | 
			
		||||
 | 
			
		||||
// From third_party/abseil-cpp/absl/types/bad_variant_access.cc
 | 
			
		||||
namespace variant_internal {
 | 
			
		||||
void ThrowBadVariantAccess() {
 | 
			
		||||
  LOG(FATAL) << "Bad variant access";
 | 
			
		||||
  abort();
 | 
			
		||||
}
 | 
			
		||||
}  // namespace variant_internal
 | 
			
		||||
 | 
			
		||||
}  // namespace absl
 | 
			
		||||
#endif  // BUILDFLAG(IS_CEF_SANDBOX_BUILD)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user