mirror of
				https://bitbucket.org/chromiumembedded/cef
				synced 2025-06-05 21:39:12 +02:00 
			
		
		
		
	
		
			
				
	
	
		
			29 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Diff
		
	
	
	
	
	
			
		
		
	
	
			29 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Diff
		
	
	
	
	
	
| diff --git build/config/compiler/BUILD.gn build/config/compiler/BUILD.gn
 | |
| index 973d8bcbd2f1f..385c865f0159e 100644
 | |
| --- build/config/compiler/BUILD.gn
 | |
| +++ build/config/compiler/BUILD.gn
 | |
| @@ -137,6 +137,9 @@ declare_args() {
 | |
|    # The cache can lead to non-determinism: https://crbug.com/1486045
 | |
|    thin_lto_enable_cache = true
 | |
|  
 | |
| +  # Whether to use thin archives in combination with lld.
 | |
| +  use_thin_archives = use_lld
 | |
| +
 | |
|    # Initialize all local variables with a pattern. This flag will fill
 | |
|    # uninitialized floating-point types (and 32-bit pointers) with 0xFF and the
 | |
|    # rest with 0xAA. This makes behavior of uninitialized memory bugs consistent,
 | |
| @@ -2204,11 +2207,13 @@ config("export_dynamic") {
 | |
|  config("thin_archive") {
 | |
|    # The macOS and iOS default linker ld64 does not support reading thin
 | |
|    # archives.
 | |
| +  if (use_thin_archives) {
 | |
|    if ((is_posix && !is_nacl && (!is_apple || use_lld)) || is_fuchsia) {
 | |
|      arflags = [ "-T" ]
 | |
|    } else if (is_win && use_lld) {
 | |
|      arflags = [ "/llvmlibthin" ]
 | |
|    }
 | |
| +  }
 | |
|  }
 | |
|  
 | |
|  # exceptions -------------------------------------------------------------------
 |