UE6 prebuilt editor schedules an engine SharedPCH for a small project module
Section titled “UE6 prebuilt editor schedules an engine SharedPCH for a small project module”- Status: current workaround for the measured editor build.
- Engine: ue6-main
61e2877e, Linux x86_64, Epic clang 23.1.5 (v27 SDK). - Context: Standalone UE6, native editor module with a shared prebuilt engine.
- Prerequisites: Existing UnrealEditor build and a small C++ project with Unreal Build Tool’s
V9build settings andUnreal6_0include order.
Symptom
Section titled “Symptom”The first editor action export for Coop Zero scheduled a SharedPCH.Engine.Project.ValApi.ValExpApi.Cpp23.h action with engine-side outputs. UBT returned success from the action export, so the exit code alone did not identify the write. Changing only to NoSharedPCHs raised this diagnostic.
CoopZero module must specify an explicit precompiled header for PCHUsage NoSharedPCHs (eg. PrivatePCHHeaderFile = "Private/CoopZeroPrivatePCH.h")Smallest example / reproduction
Section titled “Smallest example / reproduction”With P and UE set to the project and engine roots, export the actions before attempting a build. Use the workspace wrapper if required.
"$UE/Engine/Build/BatchFiles/Linux/Build.sh" CoopZeroEditor Linux Development \ -Project="$P/CoopZero.uproject" -MaxParallelActions=8 -NoEngineChanges \ -WriteOutdatedActions="$P/Saved/editor-actions.json"Check each action’s Type, StatusDescription and ProducedItems. The first export listed ten actions, including the engine shared PCH.
Solution
Section titled “Solution”In the constructor of the small project’s module rules, set PCHUsage = PCHUsageMode.NoPCHs. Export the actions again and inspect their output paths before building. Check every project module that needs to compile against the shared editor.
Why it works
Section titled “Why it works”NoPCHs removes this module’s PCH requirement from the build graph. The measured editor actions could reuse the installed editor libraries and all new output paths were under the project.
Verified
Section titled “Verified”- Evidence level: compiled.
- How: The rerun of the export command wrote
Saved/editor-actions-final.jsonwith nine actions and project-only outputs. Running the same build command without-WriteOutdatedActionsloggedResult: SucceededandTotal execution time: 13.28 secondsinSaved/ubt-editor.log. - Date / by: 2026-11-24, Coop Zero Step 01.
Limits and assumptions
Section titled “Limits and assumptions”This result applies to the measured editor target and small module. The performance impact on larger modules is unmeasured. The separate monolithic Linux game target can still compile engine runtime translation units into the project’s Intermediate; the PCH workaround addresses the editor graph’s engine-side write.