Commit Graph

297 Commits

Author SHA1 Message Date
bryan sefcik
ac642e3ace Updated to disable XGE and SNDBS when profiling.
Added a flag that turns off module unity size overrides.

#jira
[FYI] joe.kirchoff
#preflight 637673ccaf52be152449722a

[CL 23182588 by bryan sefcik in ue5-main branch]
2022-11-17 15:29:33 -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
Wojciech Krywult
5b7ef50b76 UBT: Edit and Continue: Unified the property names used to enable edit and continue.
On some platforms we used bUseLiveCodeEdit, which was expected to be present in the per-platform configuration block. At the same time, on Windows we rely on bSupportEditAndContinue from BuildConfiguration.

Modified the console platforms to use BuildConfiguration.bSupportEditAndContinue for consistency. However, there is some value in being able to control this setting per-platform, so I've left the existing properties and just renamed them bUseLiveCodeEdit -> bSupportEditAndContinue.

As a result, all platforms that support Edit and Continue are affected by BuildConfiguration.bSupportEditAndContinue. However, if XXPlatform.bSupportEditAndContinue is presetnt, it overrides the global.

Removed ClangToolChainOptions.EnableLiveCodeEditing and related code as it turns out it wasn't really used.

#preflight 637274a99e3bea8079f98af5
#rb Joe.Kirchoff

[CL 23120407 by Wojciech Krywult in ue5-main branch]
2022-11-14 12:15:28 -05:00
chris varnsverry
093f221033 - Remove WITH_SERVER_CODE_TRUSTED concept from Engine
[REVIEW] [at]Rob.Cannaday [at]Michael.Atchison [at]Sam.Zamani

[CL 22959144 by chris varnsverry in ue5-main branch]
2022-11-03 14:23:35 -04:00
Ryan Gerleve
49469d4fc9 Re-enable Iris compilation by default. Remains disabled at runtime.
Fix static analysis & nonunity issues.

#jira UE-166990
#rb peter.engstrom
#preflight 635fe67d1b41d36d481e669d

[CL 22864286 by Ryan Gerleve in ue5-main branch]
2022-10-31 11:39:40 -04:00
chris varnsverry
6bc8df0ee7 - Remove WITH_SERVER_CODE_UNTRUSTED define to avoid confusion
[REVIEW] [at]Rob.Cannaday [at]Sam.Zamani

[CL 22802891 by chris varnsverry in ue5-main branch]
2022-10-26 22:21:03 -04:00
joe kirchoff
4bd342fb6c UnrealBuildTool: BuildSetting.V3 (currently disabled) which disallows adding module parent directory to include path list
#rnx
#rb bryan.sefcik
#preflight 634df3105f008d633fd571d2

[CL 22798627 by joe kirchoff in ue5-main branch]
2022-10-26 19:13:07 -04:00
joe kirchoff
20c19d6503 [Backout] - CL22754728
[FYI] Joe.Kirchoff
Original CL Desc
-----------------------------------------------------------------
UnrealHeaderTool: BuildSetting.V3 (currently disabled) which disallows adding module parent directory to include path list

#rnx
#rb bryan.sefcik
#preflight 634df3105f008d633fd571d2

[CL 22795918 by joe kirchoff in ue5-main branch]
2022-10-26 18:18:06 -04:00
joe kirchoff
6e28fec987 UnrealHeaderTool: BuildSetting.V3 (currently disabled) which disallows adding module parent directory to include path list
#rnx
#rb bryan.sefcik
#preflight 634df3105f008d633fd571d2

[CL 22793005 by joe kirchoff in ue5-main branch]
2022-10-26 17:30:50 -04:00
Ryan Gerleve
bc9d566c29 Disable Iris compilation while we fix static analysis warnings.
#jira none
#rb none
#preflight 635839abb870e03e6abfc39c

[CL 22759680 by Ryan Gerleve in ue5-main branch]
2022-10-25 15:54:02 -04:00
Ryan Gerleve
244de1bc8c Enable Iris compilation by default. Remains disabled at runtime.
#jira UE-166990
#preflight 6356e43df92c325024fad9fc
#rb peter.engstrom, mattias.hornlund

[CL 22750421 by Ryan Gerleve in ue5-main branch]
2022-10-25 10:21:42 -04:00
bryan sefcik
a86a03522d Added a bool setting to allow us to turn off the forcing of PCH files for gen.cpp files when PCH is disabled. This improves NoPCH/DisableUnity compile times.
#jira
#preflight 63518daf3d41a4455a3de844

[CL 22677159 by bryan sefcik in ue5-main branch]
2022-10-20 20:09:31 -04:00
christopher waters
81690d87f9 Adding and moving to the Unreal 5.2 EngineIncludeOrderVersion.
#jira none
#rb joe.kirchoff
#preflight 635014c02337adbf4270366e

[CL 22657181 by christopher waters in ue5-main branch]
2022-10-20 11:28:11 -04:00
Jason Nadro
a673e16ce5 Added the ability to do Unreal Insights traces of the Shader Compiler Worker process.
This can be enabled by modifying `UnrealEngine\Engine\Saved\UnrealBuildTool\BuildConfiguration.xml` like so:

    <?xml version="1.0" encoding="utf-8" ?>
    <Configuration xmlns="https://www.unrealengine.com/BuildConfiguration">
        <BuildConfiguration>
            <bShaderCompilerWorkerTrace>true</bShaderCompilerWorkerTrace>
        </BuildConfiguration>
    </Configuration>

- Added a build configuration xml value, `bShaderCompilerWorkerTrace`.
- Turning this on will set USE_SHADER_COMPILER_WORKER_TRACE=1
- Move the parameter -nothreading to be set when we launch the process instead of internally as an extra cmd line arg.
- Unreal Insights uses a separate thread to send events so threading support is needed for the program.  When we have USE_SHADER_COMPILER_WORKER_TRACE enabled we need to turn off `-nothreading`.
- When USE_SHADER_COMPILER_WORKER_TRACE is enabled we pass in `-trace=default` to get CPU event markers.
- The SCW program needs to turn on the following defines to be able to perform CPU and memory traces:
	ENABLE_LOW_LEVEL_MEM_TRACKER=1
	UE_MEMORY_TAGS_TRACE_ENABLED=1
	UE_TRACE_ENABLED=1
- Instrument Shader Compiler Worker with TRACE_CPUPROFILER_EVENT_SCOPE.  This are no-ops when this is turned off.

todo: Make the shader compiler worker inherit the trace args from the main process it was launched from.

#rb Yuriy.ODonnell
#jira none
#preflight 634ef80269246074db9637c2

[CL 22625183 by Jason Nadro in ue5-main branch]
2022-10-19 10:33:36 -04:00
chris varnsverry
f4c3eb6b2c - Add concept of trusted and untrusted server code/targets, so we can include/exclude code from certain trusted/untrusted build targets.
[REVIEW] [at]Rob.Cannaday [at]Sam.Zamani

[CL 22606065 by chris varnsverry in ue5-main branch]
2022-10-18 13:59:19 -04:00
nuno leiria
42049243ac Implemented ThinLTO cache and pruning arguments in UBT
#preflight 632c24691003050806482034
#rb Joe.Kirchoff, Wojciech.Krywult, Brian.White

[CL 22204860 by nuno leiria in ue5-main branch]
2022-09-27 09:48:46 -04:00
anton dunchev
e825604e90 Process control:
- Implemented priority control on Unix platform
- Refactored RunnableThreadUnix implementation
- Bump resource limits for process scheduling priority (nice) if possible

#rb LouisPhilippe.Seguin, Brandon.Schaefer
[FYI] anrew.ladenberger

[CL 22087348 by anton dunchev in ue5-main branch]
2022-09-19 22:28:24 -04:00
marc audy
2b95f60225 Set bUseVerse true for UE5
#skipci

[CL 22069343 by marc audy in ue5-main branch]
2022-09-18 02:31:14 -04:00
bryan sefcik
e5edfdd06d Added support to inline the gen.cpp files into the module cpp files.
This change does a few things:
* Improves compile times because the gen.cpp is inlined so less header parsing is required.
* Allows us to forward declare more types in the headers where we were not able to because the gen.cpp files did not have all the required headers included. The gen.cpp files required the header that generated it to include all the types because of the constructor and desructor in the gen.cpp need to know the full type.

#jira
#preflight 6323b43f8131e92d65aed1d9

[CL 22064061 by bryan sefcik in ue5-main branch]
2022-09-16 20:28:51 -04:00
Joe Kirchoff
9b55ef770f UnrealBuildTool: Determinisitic build configuration update to manage via TargetRules and ModuleRules
#rnx
#rb none
#preflight 63056e3a516bef57ffc5a099

[CL 21527850 by Joe Kirchoff in ue5-main branch]
2022-08-23 20:33:31 -04:00
Joe Kirchoff
636d17c398 UnrealBuildTool: Option to remove '_of_x' from cpp unity filenames
#rnx
#rb trivial
#preflight 63055e53ae13a5a09802f76f

[CL 21525184 by Joe Kirchoff in ue5-main branch]
2022-08-23 19:26:22 -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
Joe Kirchoff
371c0b0624 UnrealBuildTool: Move static analysis checker options into ModuleRules rather than TargetRules
#rnx
#rb none
#preflight 62f6e75de67510be05db43f9

[CL 21368307 by Joe Kirchoff in ue5-main branch]
2022-08-12 20:06:00 -04:00
kaffeewolf
a3acfba5d6 PR #9449: Add support for specifying C Standard when compiling plain C files (Contributed by kaffeewolf)
#rb none
#preflight 62f2f8c33f500fb6dc059f18

[CL 21305284 by kaffeewolf in ue5-main branch]
2022-08-09 20:34:50 -04:00
Joe Kirchoff
517316e77a UnrealBuildTool: Add TargetRules properties to control which clang checkers are enabled. Reconcile msvc cl-clang analyze with clang analyze
#rnx
#rb none
#preflight 62d75b5e185da2495fd66cf6

[CL 21170857 by Joe Kirchoff in ue5-main branch]
2022-07-19 21:52:16 -04:00