331 Commits

Author SHA1 Message Date
Brandon Schaefer
8b6b42756c GetMainVersion now requires a registered platform, which only can be done from the Linux SDK that was first registered. Current StripSymbols was making a new LinuxPlatformSDK which wont be registered and fails getting the MainVersion
Now we will use the existing LinuxPlatfromSDK or if doesn't exist make a new one and correctly register it

#jira UE-193418
#rb Josh.Adams, Zack.Neyland

[CL 27317278 by Brandon Schaefer in 5.3 branch]
2023-08-23 15:41:58 -04:00
arciel rekman
80af172880 Add a way to soft-disable PGO during a build.
- Sometimes PGO data gets stale and can needs to be removed (until a new one is collected) because it can even break the build. Instead of changing the build scripts each time when such an update process happens, add a way for UBT to silently ignore non-existent PGO data (when the file exists but has 0 size).

#rb Josh.Adams
[REVIEW] [at]Josh.Adams
#rnx

[CL 27069599 by arciel rekman in 5.3 branch]
2023-08-14 10:26:23 -04:00
Arciel Rekman
fc959ef84d Handle clang directory version change in asan RPATH.
#rb Brandon.Schaefer
#jira none
#[review] @Brandon.Schaefer

#ushell-cherrypick of 26414958 by Arciel.Rekman

[CL 26741928 by Arciel Rekman in 5.3 branch]
2023-08-01 12:04:14 -04:00
arciel rekman
260b0b3f62 Make UBT handle gracefully lack of the PGO data files.
#rb none

[CL 26609678 by arciel rekman in 5.3 branch]
2023-07-26 11:55:21 -04:00
arciel rekman
1d9f001362 Fix wrong Linux PGO path for a project-less build.
#rb none
[REVIEW] [at]Joe.Kirchoff

[CL 26490391 by arciel rekman in 5.3 branch]
2023-07-20 13:44:14 -04:00
arciel rekman
6b9b79f528 Change Linux PGO file location to match other platforms.
- Also change the name to match the target.

#rb none

[CL 26488065 by arciel rekman in 5.3 branch]
2023-07-20 12:09:50 -04:00
arciel rekman
7e88d11888 Fix IWYU tool after Linux toolchain upgrade to clang 16.0.6.
#rb none

[CL 26334841 by arciel rekman in 5.3 branch]
2023-06-29 23:08:23 -04:00
arciel rekman
4094c2a3d7 Allow building Linux with clang 15.x to unblock some jobs.
#rb none

[CL 26305585 by arciel rekman in 5.3 branch]
2023-06-28 22:30:11 -04:00
arciel rekman
14bc20aca6 Update Linux to use v22 toolchain (clang 16.0.6)
#rb Brandon.Schaefer (discussed)

[CL 26304710 by arciel rekman in 5.3 branch]
2023-06-28 21:39:45 -04:00
michael wanderson
032abfa184 Undo //UE5/Release-5.3/Engine/... changelist 26152902, this removes the per app SDK version changes accidentally cherry-picked into 5.3.
#rb josh.adams

[CL 26218519 by michael wanderson in 5.3 branch]
2023-06-23 16:40:50 -04:00
calvin zheng
3f9b3b622b - Moved SDK versions (MainVersion and Min/Max SDK version) from C# strings to SDK.json files in the Platform's Config folder
- Allow for per-project override in a project's platform's config folder (this is merging with my other work on per-project SDKs and validation of multi-target builds)
- More versions will move over after this
#rb david.harvey


#[robomerge][bot5] -FNMain

#ushell-cherrypick of 26150552 by josh.adams

[CL 26152902 by calvin zheng in 5.3 branch]
2023-06-21 12:34:18 -04:00
arciel rekman
49116212ad Compile servers with WITH_RAYTRACING=0
- This reduces Shipping server binary by a couple megabytes, and also helps reduce work during the LTO/PGO builds.

#rb Yuriy.ODonnell
[REVIEW] [at]Yuriy.ODonnell

[CL 25984505 by arciel rekman in ue5-main branch]
2023-06-14 13:05:10 -04:00
galeone
431c09150e [UBT] Add support for Code coverage on Linux
#rb Brandon.Schaefer, Jerome.Delattre, Joe.Kirchoff

[CL 25794147 by galeone in ue5-main branch]
2023-06-05 12:03:25 -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
arciel rekman
7d6b86f71d Regularize support for LTO/ThinLTO for Linux.
- Issue a warning when ThinLTO flag is specified on the command line but has no effect.

#rb Brandon Schaefer
[REVIEW]
#preflight 647a06fcf40c6565433192ac

[CL 25762597 by arciel rekman in ue5-main branch]
2023-06-02 11:26:41 -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
brandon schaefer
900964e01b Add a Suffix when compiling with AutoRTFM compiler for Linux builds
#rb none
#preflight none
[FYI] Neil.Henning, Michael.Nicolella

[CL 25203430 by brandon schaefer in ue5-main branch]
2023-04-26 14:13:52 -04:00
yiliang siew
2eb3d3add2 Adds a new bEnableLibFuzzer option for desktop platforms.
#rb Joe.Kirchoff
[FYI] Brandon.Schaefer
#preflight 643f1cebb91c1307586cba5c

[CL 25099401 by yiliang siew in ue5-main branch]
2023-04-18 20:53:49 -04:00
danny couture
3782e2df04 Fix monolithic editor linux builds that are extremely large because debug symbols are not split properly
#rnx
#rb Brandon.Schaefer
#preflight 642abcf1da7f958370d8ad31

[CL 24891106 by danny couture in ue5-main branch]
2023-04-03 08:18:56 -04:00
bryan sefcik
78aa2dfd58 Did a pass through the code to make it thread safe.
#fyi joe.kirchoff
#preflight 6424da90e11ce5214fcbfde7

[CL 24849236 by bryan sefcik in ue5-main branch]
2023-03-29 21:12:39 -04:00