Commit Graph

6320 Commits

Author SHA1 Message Date
joe kirchoff
5f5a8a703e UnrealBuildTool: Move several helper functions to EpicGames.Build
#rnx

[CL 33815711 by joe kirchoff in ue5-main branch]
2024-05-21 19:32:34 -04:00
joe kirchoff
8b3f335dbe UnrealBuildTool: Add System.Security.Cryptography package to DynamicCompilation reference, required for .NET 8
#rnx

[CL 33813248 by joe kirchoff in ue5-main branch]
2024-05-21 18:18:34 -04:00
zach brockway
f74f50ff06 UnrealBuildTool: Introduce TargetRules.bAllowEnginePluginsEnabledByDefault, analogous to (the inverse of) "DisableEnginePluginsByDefault" in the project descriptor.
This is passed through to the target receipt, and respected in FPluginManager.

#jira UE-214749
#rb Joe.Kirchoff

[CL 33811096 by zach brockway in ue5-main branch]
2024-05-21 17:30:36 -04:00
calvin zheng
702ebae3df Fix Empty AppName causing archving fail
#jira UE-215113
#rb Josh.Adams

[CL 33809972 by calvin zheng in ue5-main branch]
2024-05-21 17:09:19 -04:00
marc audy
38a8d9fdfc Remove the Platform.h experiment as it fails if files are in modules that don't include Core and put back the one off pragma disable for the single file cases in to DirectHeaderCompiling.h, leaving the global case in place for most use cases
#rnx

[CL 33806551 by marc audy in ue5-main branch]
2024-05-21 15:49:19 -04:00
marc audy
94f319872d Globally disable C5105 instead of just for direct header including
Include Platform.h before doing a single file header include (to set up the compiler correctly)
#rnx

[CL 33803971 by marc audy in ue5-main branch]
2024-05-21 14:42:39 -04:00
marc audy
5a0718a314 direct header compiling tools
#rb christopher.waters

[CL 33798962 by marc audy in ue5-main branch]
2024-05-21 12:23:35 -04:00
joe kirchoff
02f091877b UnrealBuildTool: Skip drive letter when checking for output file paths greater than MAX_PATH
#rnx

[CL 33778364 by joe kirchoff in ue5-main branch]
2024-05-20 16:40:06 -04:00
henrik karlsson
5a7dc89bf3 [UBT]
* Fixed compile warning

[CL 33735796 by henrik karlsson in ue5-main branch]
2024-05-17 16:20:37 -04:00
henrik karlsson
d420d28a78 [UBT]
* Fixed so PerModule cpp file creates its own translation unit if module merging is enabled
* Fixed so only one translation unit of PerModule.cpp is added per binary if module merging is enabled

[CL 33735442 by henrik karlsson in ue5-main branch]
2024-05-17 16:08:18 -04:00
wojciech krywult
46bc4ff1a1 UBT: SNDBS: Fixed possible distribution problems when cl-filter is used during the build.
cl-filter is invoked as follows:

cl-filter -dependencies=<path> -timing=<path> -compiler=<cl_path> -- <cl_path> [at]<rsp_path> <params>

when the command line is too long, SNDBS moves the parameters into a new response file and modifies the call to be:

cl-filter [at]<sndbs_rsp_path>

However, cl-filter doesn't support response files and fails.

Resolved by modifying the SNDBS configuration to only allow the part after "-- <cl_path>" to be moved to the response file.

#rb wojciech.krywult

[CL 33733583 by wojciech krywult in ue5-main branch]
2024-05-17 15:21:53 -04:00
joe kirchoff
088dc4b8b9 UnrealBuildTool: Initial support for merging modular builds into fewer libraries, highly experimental
#rnx
#rb henrik.karlsson

[CL 33732096 by joe kirchoff in ue5-main branch]
2024-05-17 14:47:05 -04:00
calvin zheng
9d577b4831 Revert 33704262
[CL 33723736 by calvin zheng in ue5-main branch]
2024-05-17 10:27:03 -04:00
ben marsh
09bdb264cf Horde: Use IHordeClient within the agent for all RPC/storage traffic.
#rnx

[CL 33721842 by ben marsh in ue5-main branch]
2024-05-17 09:05:02 -04:00
henrik karlsson
b250c11229 Changed so operator new/delete overloads are pulled in through a special include compiled in a generated cpp file that goes in its own translation unit. This will make it possible to support merging of modules and only include one of the .obj files for these overloads
If a module depends on Core and does not want the overloads it needs to add the private define SUPPRESS_PER_MODULE_INLINE_FILE or set PER_MODULE_INLINE_FILE to point to a different file

[CL 33709297 by henrik karlsson in ue5-main branch]
2024-05-16 22:34:40 -04:00
calvin zheng
1b261a22ff Fix for iOS deploy fails
#rb Josh.Adams

[CL 33704313 by calvin zheng in ue5-main branch]
2024-05-16 18:50:36 -04:00
joe kirchoff
f778f524de UnrealBuildTool: Preprocess SharedPCH when generating project files to prevent writing to the same file multiple times
#rnx
#jira UE-213872

[CL 33690581 by joe kirchoff in ue5-main branch]
2024-05-16 12:21:10 -04:00
marc audy
6a76a0e4b9 Add UE_DIRECT_HEADER_COMPILE to allow avoiding warnings/errors in single-header compilation.
Replace setting SUPPRESS_MONOLITHIC_HEADER_WARNINGS with UE_DIRECT_HEADER_COMPILE for header compilation situations
#rnx
#rb Christopher.Waters, Joe.Kirchoff

[CL 33672325 by marc audy in ue5-main branch]
2024-05-15 17:47:03 -04:00
marc audy
2c05105f32 Minor clean up of SUPPRESS_MONOLITHIC_HEADER_WARNINGS
* Remove pointless define/undef of it
* Set it to 1 consistently in all cases (even though we only check if it is defined)

[CL 33667364 by marc audy in ue5-main branch]
2024-05-15 15:49:27 -04:00
marc audy
ecd20a51b6 Allow ShowIncludes to work for clang as well as windows
#rb christopher.waters, Joe.Kirchoff

[CL 33665843 by marc audy in ue5-main branch]
2024-05-15 14:51:47 -04:00
neil henning
991f7cde76 Fix Windows ASan issues when using the AutoRTFM compiler.
#rb Brandon.Schaefer

[CL 33655239 by neil henning in ue5-main branch]
2024-05-15 08:29:19 -04:00
joe kirchoff
5477d8fd9a UnrealBuildTool: Remove unneeded using
#rnx

[CL 33638352 by joe kirchoff in ue5-main branch]
2024-05-14 18:24:35 -04:00
joe kirchoff
15dd07ca7e UnrealBuildTool: Always write a .cpp file when compiling stand-alone headers
#rnx

[CL 33638117 by joe kirchoff in ue5-main branch]
2024-05-14 18:12:01 -04:00
joe kirchoff
5066d97820 UnrealBuildTool: Shorten -IncludeHeader path
#rnx

[CL 33634799 by joe kirchoff in ue5-main branch]
2024-05-14 15:15:28 -04:00
joe kirchoff
aae11b81ee UnrealBuildTool: -IncludeHeader fixes
* Headers can have duplicate filenames which results in intermediate file conflicts, generate an intermediate subdirectory using the header relative path from the module root
* Don't use PCH for headers (also fix the original unmodified module compile environment being overwitten due to not making a copy !!!)
* Set SUPPRESS_MONOLITHIC_HEADER_WARNINGS=0 for header compiles
* Remove the need to generate a separate file to include the header with -SingleFile
* Fix /TC not being passed to clang-cl
* Disable a few clang #pragma related warnings

#rnx
#jira UE-214521
#rb christopher.waters

[CL 33608666 by joe kirchoff in ue5-main branch]
2024-05-13 16:24:15 -04:00