Commit Graph

308 Commits

Author SHA1 Message Date
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
brandon schaefer
547593db87 Move to adding a TargetRules bool for using AutoRTFM Compiler
#rb Neil.Henning
[FYI] Michael.Nicolella
#preflight 6421fdc6973e609670b97622

[CL 24824162 by brandon schaefer in ue5-main branch]
2023-03-28 15:14:44 -04:00
james singer
38043bb2a0 Provide option to disable dump_syms where iteration speed is desirable. (-NoDumpSyms or set bDisableDumpSyms)
#jira UE-177205
#preflight 640a062228026468d9d37cf8
#review-24547341 @Brandon.Schaefer
#rb Brandon.Schaefer

[CL 24576891 by james singer in ue5-main branch]
2023-03-09 11:27:20 -05:00
Joe Kirchoff
ddcb912fe5 UnrealBuildTool: Remove CanUseParallelExecutor as it is no longer needed as the UAT ParallelExecutor has been removed and is obsolete.
#rnx
#rb trivial
#preflight 63fe749add78dd50f6247b02

[CL 24452546 by Joe Kirchoff in ue5-main branch]
2023-02-28 17:01:41 -05:00
bryan sefcik
897d3d015b Disabled pch chaining on Linux because it is crashing the compiler when compiling the CitySample.
#jira
[FYI] joe.kirchoff
#preflight 63e59ec7db0da0fdac5519b6

[CL 24114192 by bryan sefcik in ue5-main branch]
2023-02-09 22:38:41 -05:00
Joe Kirchoff
49941df8c8 UnrealBuildTool: Prevent multiple target leaking bundle dependencies on Mac
#rnx
#rb Josh.Adams
#preflight 63d1978cbe435f17b408210c
#preflight 63d1af24be435f17b40e38f4

[CL 23858824 by Joe Kirchoff in ue5-main branch]
2023-01-25 17:55:46 -05:00
Brandon Schaefer
6863e11254 Fix ASan crashing in getaddrinfo. Bug introduced in LLVM 15 compiler-rt
https://github.com/llvm/llvm-project/issues/59007

#jira UE-175022
#preflight none
#rb James.Singer, Robert.Seiver

[CL 23856128 by Brandon Schaefer in ue5-main branch]
2023-01-25 16:15:04 -05:00
Brandon Schaefer
2fd67649f5 Re-fix arch name change
#jira none
#rb none
#preflight none

[CL 23834394 by Brandon Schaefer in ue5-main branch]
2023-01-24 13:26:46 -05:00
Brandon Schaefer
1e616e242d Fix build failure from new arch changes
#jira none
#rb none
#preflight none

[CL 23834129 by Brandon Schaefer in ue5-main branch]
2023-01-24 13:18:17 -05:00
Brandon Schaefer
adaafd04a5 Fix missing ASan*.so when running non-monolithic
#jira none
#rb none
#preflight none
#fyi Robert.Seiver, James.Singer

[CL 23833926 by Brandon Schaefer in ue5-main branch]
2023-01-24 13:03:28 -05:00
josh adams
1610c3bee3 UnrealArch/UnrealArchitectures changes
- Creates the UnrealArchitectures class, which wraps a list of UnrealArch objects
 - UnrealArch is a single architecture, expandable enum-like struct
 - There is no more concept of "no/default architecture", there is always a valid active architecture when building
 - Most uses of "string Architecture" are replaced with one of the two above, depending if multiple architectures are supported or not
 - UnrealArch has some platform-extensions for platform-specific naming (like Linux adds in LinuxName that turns, for instance, Arm64 -> aarch64-unknown-linux-gnueabi, which is used in folder names, etc)
 - UnrealArch has bIsX64 which can be used determine intel instruction set (as opposed to arm)
 - TargetRules class has an "Architecture" accessor that will return a single architecture if the active architectures is a single architecture, or throw an exception if multiple. This is useful in a majority of the cases where a paltform can only have a single architecture active in TargetRules (microsoft platforms, for instance, will create separate targets when compiling multiple architectures at once)
 - Added UnrealArchitectureConfig class, which contains all the architecture information for a platform (what architectures are supported, what ones are currently active for given project, etc)

#preflight 63c81fb5b065224750a1759e
#rb mike.fricker,roman.dzieciol,joe.kirchoff,dmytro.vovk,brandon.schaefer [various parts]
#p4v-preflight-copy 23562471

[CL 23829977 by josh adams in ue5-main branch]
2023-01-24 09:30:28 -05:00
Brandon Schaefer
895c73720f Move to new 15.0.1 LLVM Linux Toolchain
#jira UE-174139
#rb none
#fyi Ryan.Hummer, Zack.Neyland, Robert.Seiver, James.Singer
#preflight 63cedc59b91ac945f53281b9

[CL 23821785 by Brandon Schaefer in ue5-main branch]
2023-01-23 16:32:46 -05:00
Brandon Schaefer
e40d105c99 Fix missing removal of function
#jira none
#rb none
#preflight none

[CL 23795661 by Brandon Schaefer in ue5-main branch]
2023-01-20 15:07:51 -05:00
Brandon Schaefer
afdbf27e27 Remove check for supressing PIE and disable PIE unless being explicity enabled
#jira UE-174139
#preflight none
#rb James.Singer

[CL 23795617 by Brandon Schaefer in ue5-main branch]
2023-01-20 15:03:30 -05:00
Joe Kirchoff
4a262359a0 UnrealBuildTool: Store Action file lists in SortedSets rather than Lists, since these collections should never have duplicate entries and sorting them helps when checking for action conflicts
Requires implementing IComparable\IEquatable in FileItem (and I also implemented them in DirectoryItem for consistency)

#rnx
#rb Tim.Smith
#preflight 63c1cce4a06ab115ea17ba4f
#preflight 63c70f4d7763631ba15486ea

[CL 23745743 by Joe Kirchoff in ue5-main branch]
2023-01-17 16:35:14 -05:00
henrik karlsson
23ea716c7a [UBT]
* Added IWYU toolchain which can be enabled with -IWYU
* Added IWYU mode that can be used with -Mode=IWYU. This can be used to modify code files
* Binary of include-what-you-use that contains a ton of fixes to make ue build

#preflight skipped
#rb joe.kirchoff

[CL 23631202 by henrik karlsson in ue5-main branch]
2023-01-10 14:52:00 -05:00
Josh Adams
e6d0fb6486 - Added to new architecture APIs to UEBuildPlatform
- ConvertToReadableArchitecture() - turn an internal platform arch string to a printable version
  - IsX86Architecture() - returns true if the platform arch string represents an x86 architecture
- Changed Linux to use the HumanReadableName as the FolderNameForArchitecture, so it's shorter and it is not obfuscated anymore
#rb brandon.schaefer
#preflight 638fc65e9549ddaa288ccf73
#fyi dan.thompson

[CL 23419149 by Josh Adams in ue5-main branch]
2022-12-06 18:21:19 -05:00
Josh Adams
b337b06556 - Allow for a platform to compile for multiple architectures, and have the high-level compile separately, and then link not separately (this means we can't use the one-target-per-architecture stuff that is already present)
- Mac changes to compile separately,  but link together (with lipo) after making two .dylibs/executables
- Removed FixDylibDependencies on Mac by making "stub dylibs" to mimic what Windows does with import libs, to solve circular dependencies
- Added DependenciesToSkipByArchitecture to ModuleRules that is used, when making a new single-arch LinkEnvironment from a multi-arch LinkEnvironment, to strip out libraries, etc, that should not be included with that single architecture
#preflight 6387891b4004f73f623c85a0
#rb zack.neyland

[CL 23336522 by Josh Adams in ue5-main branch]
2022-11-30 13:38:45 -05:00
brandon schaefer
4f85084928 [UBT] Add options to enable pie and stack protector for target rules
disabled by default

#rb Josh.Adams, Zack.Neyland
#preflight 637526e4ee4d25f90aa62e6c

[CL 23163701 by brandon schaefer in ue5-main branch]
2022-11-16 17:02:54 -05:00
danny couture
97ea0dc8d7 Fix missing frame pointer when using TSAN
#rnx
#rb Brandon.Schaefer
#preflight skip

[CL 22781606 by danny couture in ue5-main branch]
2022-10-26 11:44:54 -04:00
jeannoe morissette
42e46146e2 VulkanRHI: Fix RHI_RAYTRACING not being set on Linux builds. Fix case on some includes.
#jira UE-165993
#preflight 633f0fe3174b138657ded100
#rb Brandon.Schaefer
#rnx
#lockdown Mihnea.Balta

[CL 22404275 by jeannoe morissette in ue5-main branch]
2022-10-07 13:37:38 -04:00
bryan sefcik
1599bfae2e Rewrote the GenerateClangDatabase mode in UBT to work with the clang tools like IWYU.
#preflight 63052ee5c744dac967fc287f

[CL 21519266 by bryan sefcik in ue5-main branch]
2022-08-23 16:36:20 -04:00
dmytro vovk
37b8ab825c Deprecated bCompileForSize UBT Target option and replaced with OptimizationMode enumto fine tune a balance between speed and\or code size
#jira none
#rb Joe.Kirchoff
#preflight 62ff99b0200ff87e07f75a69

[CL 21511266 by dmytro vovk in ue5-main branch]
2022-08-23 12:44:36 -04:00
UnrealBot
73409369c0 Branch snapshot for CL 21319338
[CL 21319338 in ue5-main branch]
2022-08-10 16:03:37 +00:00