Skip to content

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 V9 build settings and Unreal6_0 include order.

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")

With P and UE set to the project and engine roots, export the actions before attempting a build. Use the workspace wrapper if required.

Terminal window
"$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.

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.

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.

  • Evidence level: compiled.
  • How: The rerun of the export command wrote Saved/editor-actions-final.json with nine actions and project-only outputs. Running the same build command without -WriteOutdatedActions logged Result: Succeeded and Total execution time: 13.28 seconds in Saved/ubt-editor.log.
  • Date / by: 2026-11-24, Coop Zero Step 01.

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.