File tree 1 file changed +5
-0
lines changed
1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ def get_opts():
41
41
# Matches default values from before Emscripten 3.1.27. New defaults are too low for Godot.
42
42
("stack_size" , "WASM stack size (in KiB)" , 5120 ),
43
43
("default_pthread_stack_size" , "WASM pthread default stack size (in KiB)" , 2048 ),
44
+ ("emscripten_include_path" , "Emscripten include/ path" , "" ),
44
45
BoolVariable ("use_assertions" , "Use Emscripten runtime assertions" , False ),
45
46
BoolVariable ("use_ubsan" , "Use Emscripten undefined behavior sanitizer (UBSAN)" , False ),
46
47
BoolVariable ("use_asan" , "Use Emscripten address sanitizer (ASAN)" , False ),
@@ -110,6 +111,10 @@ def configure(env: "SConsEnvironment"):
110
111
print_error ("Initial memory must be a valid integer" )
111
112
sys .exit (255 )
112
113
114
+ ## Emscripten setup
115
+ if env ["emscripten_include_path" ]:
116
+ env .Append (CPPPATH = [env ["emscripten_include_path" ]])
117
+
113
118
## Build type
114
119
115
120
if env .debug_features :
You can’t perform that action at this time.
0 commit comments