Commit Graph

190 Commits

Author SHA1 Message Date
henrik karlsson
78225af9cd Undo changelist 26507841 because it cause deadlocks during build.
[CL 26527677 by henrik karlsson in ue5-main branch]
2023-07-21 17:51:56 -04:00
Tim Smith
45406e6006 1) Fixed internal performance issue where attempts to start actions were being spammed.
2) Fixed an extremely rare issue where action execution might be terminated early.
3) Improved logging to provide better visibility when actions fail resulting in dependent actions not getting executed (i.e. not all actions being logged with no error feedback)
4) Fixed issue where not all error messages would be logged prior to the build summary

#rb tbd

[CL 26507830 by Tim Smith in ue5-main branch]
2023-07-21 07:13:36 -04:00
joe kirchoff
01a82374aa UnrealBuildTool: Allow configuring toolchain and toolchain version to control what msvc version is used when clang is used to compile
#rb Tim.Smith

[CL 26449366 by joe kirchoff in ue5-main branch]
2023-07-18 17:55:15 -04:00
henrik karlsson
605c174b5e [UBT]
* Added additional command line arguments handling in BoxExecutor when -Target="..." is used
* Fixed so max remote action count is sent to native side

[CL 26386137 by henrik karlsson in ue5-main branch]
2023-07-11 13:59:06 -04:00
henrik karlsson
ab460ba261 [UBT]
* ParallelExecutor - Fixed bug where totalactions was used to set maxweight.. this means that if 35 cl.exe actions were queued (which has weight 1.5) it would only build max 23 actions in parallel even though NumParallelProcesses might be higher (computer might have 128 cores)

[CL 26379886 by henrik karlsson in ue5-main branch]
2023-07-09 18:50:33 -04:00
Josh Adams
b0e29c9e75 - Added basic support for compiling Swift code (not general purpose yet, only the UESwift.swift file in this CL will work for now)
- Added an example SwiftUI view shown on VisionOS, using UIHostingViewController (must be created in Swift, not Obj-C)
- Refactored AppleToolChainSettings and children so AppleToolChain can have a single Swift compile function, and still target the proper toolchain (more cleaning up and pulling into AppleToolChain should now be possible)
#rb joe.kirchoff

[CL 26346396 by Josh Adams in ue5-main branch]
2023-06-30 12:08:50 -04:00
joe kirchoff
4229c1698a UnrealBuildTool: Fix fastbuild not handling nested response files
#rnx

[CL 26263138 by joe kirchoff in ue5-main branch]
2023-06-27 13:35:03 -04:00
tim smith
e80ccec833 Modified UBT to generate more detailed information when the compiler crashes.
#rb joe.kirchoff

[CL 26238099 by tim smith in ue5-main branch]
2023-06-26 13:29:08 -04:00
henrik karlsson
1955753781 [UBT]
* Removed lock in GetQueuedActionsCount. The return count does not need to be exact so this is fine.

[CL 26228105 by henrik karlsson in ue5-main branch]
2023-06-25 17:27:51 -04:00
henrik karlsson
e7e8b88021 [UBT]
* Added so when counting queued actions it is possible to provide a function that can check if the action should be counted or not

[CL 26202845 by henrik karlsson in ue5-main branch]
2023-06-22 22:16:33 -04:00
henrik karlsson
786da2ed7f [UBT]
* Added ImmediateActionQueue.GetQueuedActionsCount method that returns number of queued actions left

#rb none

[CL 25990850 by henrik karlsson in ue5-main branch]
2023-06-14 15:38:21 -04:00
henrik karlsson
be9eb407a8 [UBT]
* Added AdditionalDescription parameter to ParallelExecutor.RunAction
* Added bCanExecuteInBox for actions

[CL 25968700 by henrik karlsson in ue5-main branch]
2023-06-13 20:26:15 -04:00
joe kirchoff
acacd6a8de UnrealBuildTool: More automated code cleanup
* Use object type rather than var
* Remove double newlines
* Use pattern matching

#rnx
#preflight 647780095d23eca37d28a387

[CL 25706751 by joe kirchoff in ue5-main branch]
2023-05-31 13:37:21 -04:00
joe kirchoff
acf80ab609 [Backout] - CL25694851
[FYI] Joe.Kirchoff
Original CL Desc
-----------------------------------------------------------------
UnrealBuildTool: More automated code cleanup

#rnx

[CL 25695155 by joe kirchoff in ue5-main branch]
2023-05-30 19:55:37 -04:00
joe kirchoff
7ed1a39679 UnrealBuildTool: More automated code cleanup
#rnx

[CL 25694864 by joe kirchoff in ue5-main branch]
2023-05-30 19:36:05 -04:00
joe kirchoff
c04da27b3b UnrealBuildTool: More automated code cleanup
#rnx
#preflight 64767efb4b1ead7c7f428c7a

[CL 25693857 by joe kirchoff in ue5-main branch]
2023-05-30 18:59:32 -04:00
joe kirchoff
36d266e932 UnrealBuildTool: Automated code cleanup
#rnx
#preflight 6476799e947ff6973c225619

[CL 25693241 by joe kirchoff in ue5-main branch]
2023-05-30 18:38:07 -04:00
joe kirchoff
57a8fe409c UnrealBuildTool: Use expression body for simple properties and accessors
#rnx
#preflight 64766abcfe6a3b258a04cb50

[CL 25691579 by joe kirchoff in ue5-main branch]
2023-05-30 18:01:50 -04:00
tim smith
cf626105dd 1) Replaced bCanCache with new artifact mode flags
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]
2023-05-26 12:48:45 -04:00
tim smith
eda2bb9be8 Fixed issue where action outputs were not having their file information reset. This resulted in old hashes being used to create keys for other actions.
#rb self
#preflight 6464bed411205d3573ab7f59

[CL 25506044 by tim smith in ue5-main branch]
2023-05-17 09:33:27 -04:00
tim smith
95d9f283be Fixing issue where artifacts were not being seen.
#rb self
#jira UE-185584
#preflight 6463e7b16b1406b54ad2324e

[CL 25499424 by tim smith in ue5-main branch]
2023-05-16 18:34:13 -04:00
tim smith
9c741f36c2 Fixed issue where UBT would lockup when the artifact system was enabled.
#rb self
#preflight 64628942cf788a255846d755

[CL 25482667 by tim smith in ue5-main branch]
2023-05-15 19:28:38 -04:00
tim smith
f2cabb06eb Fixed issue where actions completed from the cache would be resaved.
#rb self
#preflight 645e8263aa3c584c0bb41b03

[CL 25458942 by tim smith in ue5-main branch]
2023-05-12 16:15:15 -04:00
tim smith
dce93c0456 1) Added missing exception handling in the tasks
2) Reworked how "stop after error" works
3) Fixed  issue where error propagation might result in a failure to exit.

#rb self
#preflight 645b7ef03172e962d2cf3e47

[CL 25402787 by tim smith in ue5-main branch]
2023-05-10 08:40:51 -04:00
tim smith
f994e99349 1) Fixed BoxExecutor to not use have any async methods due to Stop needing to happen on the same thread.
2) Fixed issue where Task.Run and SetResult were being invoked under a  lock which could result in deadlocks.

#rb self
#preflight 645650d1ed7ffaa0f510d02b

[CL 25365879 by tim smith in ue5-main branch]
2023-05-06 10:46:31 -04:00