PERF: Set JOBS=1 for low memory build environment (#32326)

This restores the fix in ae2bc240af434168aeebe73d550b1c979ca3a29b
This commit is contained in:
Alan Guo Xiang Tan
2025-04-16 17:14:23 +08:00
committed by GitHub
parent a6e35b0225
commit b3389a4cc3

View File

@ -81,6 +81,7 @@ if low_memory_environment?
STDERR.puts "Node.js heap_size_limit is less than 2048MB. Setting --max-old-space-size=2048 and CHEAP_SOURCE_MAPS=1"
build_env["NODE_OPTIONS"] = "--max_old_space_size=2048"
build_env["CHEAP_SOURCE_MAPS"] = "1"
build_env["JOBS"] = "1"
end
build_cmd << "-prod" if resolved_ember_env == "production"