mirror of
				https://github.com/godotengine/godot.git
				synced 2025-10-31 13:41:03 +00:00 
			
		
		
		
	Add WASM_BIGINT linker flag to the web build
				
					
				
			(cherry picked from commit 3ae524fa9e)
			
			
This commit is contained in:
		
							parent
							
								
									193592d532
								
							
						
					
					
						commit
						b11c95dc98
					
				
					 1 changed files with 4 additions and 0 deletions
				
			
		|  | @ -220,6 +220,10 @@ def configure(env: "Environment"): | ||||||
|         env.Append(LINKFLAGS=["-s", "SIDE_MODULE=2"]) |         env.Append(LINKFLAGS=["-s", "SIDE_MODULE=2"]) | ||||||
|         env.extra_suffix = ".dlink" + env.extra_suffix |         env.extra_suffix = ".dlink" + env.extra_suffix | ||||||
| 
 | 
 | ||||||
|  |     # WASM_BIGINT is needed since emscripten ≥ 3.1.41 | ||||||
|  |     if cc_semver >= (3, 1, 41): | ||||||
|  |         env.Append(LINKFLAGS=["-s", "WASM_BIGINT"]) | ||||||
|  | 
 | ||||||
|     # Reduce code size by generating less support code (e.g. skip NodeJS support). |     # Reduce code size by generating less support code (e.g. skip NodeJS support). | ||||||
|     env.Append(LINKFLAGS=["-s", "ENVIRONMENT=web,worker"]) |     env.Append(LINKFLAGS=["-s", "ENVIRONMENT=web,worker"]) | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Adam Scott
						Adam Scott