This removes the old hack that renames the target based on nonunity being set while also adding a new intermediates folder for IWYU.
#jira UE-190274
#rb joe.kirchoff
[CL 26514773 by christopher waters in 5.3 branch]
* Use object type rather than var
* Remove double newlines
* Use pattern matching
#rnx
#preflight 647780095d23eca37d28a387
[CL 25706751 by joe kirchoff in ue5-main branch]
[FYI] Joe.Kirchoff
Original CL Desc
-----------------------------------------------------------------
UnrealBuildTool: More automated code cleanup
#rnx
[CL 25695155 by joe kirchoff in ue5-main branch]
2) Added support in artifacts for relative paths
3) Modified ISPC header generation to be cached
At this time, only MSVC compiles are cached and -deterministic must be specified when building.
#rb josh.adams
#preflight 6470a172054af2576a2bd4b9
[CL 25647092 by tim smith in ue5-main branch]
2) Moved common code from executors into an immediate action queue.
3) Added support in the immediate action queue to read/write artifacts
#rb joe.kirchoff
#preflight 6454f3c5ed7ffaa0f5b2fbfa
[CL 25355149 by tim smith in ue5-main branch]
* Change so SingleFile will not build dependents by default. This can be enabled with -SingleFileBuildDependents
#preflight skipped
#rb joe.kirchoff
[CL 24344617 by henrik karlsson in ue5-main branch]
* Fixed so -SingleFile includes running prereq actions if they are not up to date.
#preflight skipped
#rb joe.kirchoff
#jira none
[CL 24239919 by henrik karlsson in ue5-main branch]
- Fixed up how UnrealArchitectureConfig classes have commandline applied
- Proper fix for UE-176691
#jira UE-176691
#rb joe.kirchoff
#preflight 63ebd379514832b2425b83c2
[CL 24217163 by Josh Adams in ue5-main branch]
* Fixed inverted logic in BuildConfiguration.bIgnoreInvalidFiles check for singlefile compile
#preflight skipped
#rb none
[CL 24107279 by henrik karlsson in ue5-main branch]
* Fixed so BuildConfiguration.bIgnoreInvalidFiles is checked before outputting error when building with -SingleFile containing invalid files
#preflight skipped
#rb none
[CL 24107264 by henrik karlsson in ue5-main branch]
Changed how single files are built. We don't want to invalidate makefile everytime we build single files since it destroys turnaround times. With this change a single file compile can take 2s (+ the actual compile time).
The new behavior injects a special action per module when creating the makefile. These actions can be used to on-the-fly create a proper compile action that follows the rules of the module that the specific file belongs to.. In a normal build these actions are ignored since the logic deciding which actions to build is backtraced from which binaries we want to create.
When a specific file compile is triggered, the logic deciding which files to build search up all these special actions and create a lookup based on which folders the special actions handle. It then try to find the special action that handles the specific file. The matching special action then creates a compile action that can handle that specific file and then queue up the action for execution. If no special action is found it falls back to try to use actions that have this specific file as input (ispc files for example)
Details:
* Removed lots of custom code for "specific files" handling
* Changed so pch (both private and shared) always use definition file. Added #pragma once and change so pch wrapper file include definition file. This made the adaptive path and specific file easy to implement (just disable pch in compile environment and it will just work)
* Added SingleFileAction for both VCToolChain and ClangToolChain. It now works to compile specific headers and cpp files. (It creates wrapper files on the fly to be able to compile all header files (compiling headers directly blow up if there are circular includes)
* Fixed so GenerateClangDatabase mode works with new changes
* Moved the logic that makes sure all (directly) depending cpp files are recompiled when .h are included in the singlefile option
#preflight 63dcc46f78716a01e8069649
#rb joe.kirchoff
[CL 24094027 by henrik karlsson in ue5-main branch]
- Apply commandline options to UnrealArchitectureConfig objects in Build and GenProject modes
- Also fixed a commant for XML documentation
#rb tim.smith
#jira UE-175633
#preflight 63d9525931334253e599eaa5
[CL 23930591 by Josh Adams in ue5-main branch]