Commit Graph

378 Commits

Author SHA1 Message Date
robert millar
c5b33be3d3 QueryMode: Add debug launch configuration to target info
#rb none

[CL 27806244 by robert millar in ue5-main branch]
2023-09-12 16:17:41 -04:00
david harvey
f303e13746 Fix for TargetRules.ToolChainName instantiation failure
#jira UE-179187
#rnx
#rb Francis.Hurteau, Josh Adams

[CL 27524803 by david harvey in ue5-main branch]
2023-08-31 11:42:55 -04:00
yiliang siew
c6f6cb6bb2 Allow forcing WITH_VERSE_VM=1 so that when generating Clang compilation databases we get useful ones for clangd to actually work properly.
#rnx
[FYI] Saam.Barati
#rb Josh.Adams

[CL 27466494 by yiliang siew in ue5-main branch]
2023-08-29 17:11:31 -04:00
bryan sefcik
6d9b945de1 Updated all of the intellisense data gathering to be done in parallel.
Updated a few project generators to be thread safe.
Fixed an issue where the vproject generation wasn't deterministic.
Updated the project generation to output the total time it took to execute.

Before: 21.62 seconds
After: 17.56 seconds

#jira
#rb joe.kirchoff

[CL 27179702 by bryan sefcik in ue5-main branch]
2023-08-17 14:18:48 -04:00
joe kirchoff
448d2082d2 UnrealBuildTool: Fix generate clang database regression due to alternate intermediate directory
#rnx
#jira UE-193178
#rb Chris.Waters

[CL 27156561 by joe kirchoff in ue5-main branch]
2023-08-16 17:42:49 -04:00
joe kirchoff
d9c266018a Fix -Mode=IWYU header print when -Write is passed
#rnx

[CL 27126904 by joe kirchoff in ue5-main branch]
2023-08-15 19:35:44 -04:00
joe kirchoff
c44fc5fd4a UnrealBuildTool: Print action groups in parallel executor when building multi target
#rnx

[CL 27006666 by joe kirchoff in ue5-main branch]
2023-08-10 15:38:17 -04:00
joe kirchoff
b46695c12e UnrealBuildTool: Ensure generated files are written to the correct intermediate folder name
#rnx

[CL 26780017 by joe kirchoff in ue5-main branch]
2023-08-02 14:02:59 -04:00
henrik karlsson
6762ccbf9f [UBT]
* Fixed so -rebuild works again.. did not fix the code fully because it was broken before and did not delete the "Inc" folder because the code produced the wrong path. I don't want to fix this because deleting that path would make -rebuild of non-unity also force rebuild of unity version

[CL 26695042 by henrik karlsson in ue5-main branch]
2023-07-29 01:11:21 -04:00
joe kirchoff
b77869bf20 UnrealBuildTool: Fix unity setting for profile unity sizes mode
#rnx

[CL 26646957 by joe kirchoff in ue5-main branch]
2023-07-27 13:40:40 -04:00
joe kirchoff
e4c3baec77 UnrealBuildTool: Fix generate clang database not setting disable unity
#rnx

[CL 26645842 by joe kirchoff in ue5-main branch]
2023-07-27 13:12:30 -04:00
christopher waters
cabaf593a1 NonUnity command line arguments should be per-target while build configuration XML settings should be global.
#rb joe.kirchoff

[CL 26590366 by christopher waters in ue5-main branch]
2023-07-25 17:44:34 -04:00
christopher waters
8c0f3d159f Making more TargetDescriptor uses correctly handle different intermediate paths.
Making the global link environment use the modified intermediate path.

#rb joe.kirchoff

[CL 26525866 by christopher waters in ue5-main branch]
2023-07-21 17:01:15 -04:00
christopher waters
47426db352 Adding UnrealIntermediateEnvironment to allow different intermediate paths based on build settings.
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 26514944 by christopher waters in ue5-main branch]
2023-07-21 12:08:09 -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
joe kirchoff
a4a3b277e9 UnrealBuildTool: Fix analyze mode to actually show the shortest chain
#rnx

[CL 26356865 by joe kirchoff in ue5-main branch]
2023-06-30 17:35:49 -04:00
christopher waters
7f5cc1fd0c Adding a log for IWYUMode
#rb henrik.karlsson

[CL 26296631 by christopher waters in ue5-main branch]
2023-06-28 15:54:57 -04:00
christopher waters
e1a3ed2ce1 Fixing null dereferences when IWYU hasn't compiled everything.
#rb joe.kirchoff

[CL 26260223 by christopher waters in ue5-main branch]
2023-06-27 12:07:55 -04:00
bryan sefcik
64694b38ab Added the ability to force update the include paths.
#jira

[CL 26245820 by bryan sefcik in ue5-main branch]
2023-06-26 17:35:25 -04:00
halfdan ingvarsson
3f8af0f4e4 UBT: When calling with Mode=QueryTargets and the -IncludeAllTargets flag, include a flag in the result to indicate which target is the default target for a given target type.
[CL 26142336 by halfdan ingvarsson in ue5-main branch]
2023-06-21 01:35:16 -04:00
Josh Adams
17fdc6481d - Moved the SingleTargetName property up to ProjectFileGenerator from Xcode generator, and use it to remove Targets from the list to be processed. This is useful because when modern Xcode creates a stub xcode project for a Program, it has no uproject to use with "-game -project", so the GPF code would process all .Target.cs files, which can lead to warnings about missing AdditionalPluginDirectories (build machines may not fully sync a stream, and processing every Target can cause unexpected problems)
#rb joe.kirchoff

[CL 26132088 by Josh Adams in ue5-main branch]
2023-06-20 15:59:57 -04:00
joe kirchoff
0413539cd0 UnrealBuildTool: Mode to generate a cl repro given an intermediate cpp and dep file
#rnx
#jira UE-175371

[CL 26065252 by joe kirchoff in ue5-main branch]
2023-06-16 15:13:53 -04:00
josh adams
f6381544e2 - Allow a project to override the Main SDK version for a platform (the platform's project Engine.ini would set
[OverrideSDK]
  SDKVersion=x.y.z
and AutoSDK, or anything using GetMainVersion(), would use that version string instead
- If multiple targets are built in one run of UBT/UAT, it will error out because there is no support to switch SDKs (and builds happen in parallel, etc)
- This is not a complete solution, because it can cause problems with shared tools like ShaderCompileWorker, when different projects are on different SDKs and they have one SCW to share
- Renamed GetMainVersion to GetMainVersionInternal(), and wrapped that in a new non-vitual GetMainVersion() that calls GetMainVersionInternal() (and handles the ini overrides)
#rb david.harvey,dave.barrett
#jira UE-185364
#preflight 647a12e7b0670733186c928e

[CL 25767233 by josh adams in ue5-main branch]
2023-06-02 13:42:59 -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