Commit Graph

5776 Commits

Author SHA1 Message Date
david harvey
68dd29f6e7 early out if the PGO data directory doesn't exist, instead of causing an exception from directory enumeration.
#rb Ryan.Hummer
#rnx

[CL 28341354 by david harvey in ue5-main branch]
2023-09-29 10:01:55 -04:00
josh adams
2dc3ceb56b - Improved the path generated for UE_ENGINE_DIRECTORY define by UBT for programs underneath Engine, it will now use ../../../Engine instead of ../.., or more important for Restricted programs, it will use ../../../../../Engine instead of ../../../..
- Some code expects there to be "Engine" in the EngineDir, so it will not use absolute paths for RootDir, etc for Restricted programs
#rb david.harvey

[CL 28325941 by josh adams in ue5-main branch]
2023-09-28 15:21:55 -04:00
henrik karlsson
e273ded9f5 [UBT]
* Disabled box for pgooptimized link actions for now just to rule out if long link time is because of box

[CL 28324916 by henrik karlsson in ue5-main branch]
2023-09-28 14:42:45 -04:00
chris constantinescu
1aeb7faa75 LLT: Pre-analyse dependency graph of low level test targets before setting compilation flags for UE components
Use -Mode=Test by default for all LLT Project to enable pre-analysis of dependency graph.
#jira UE-193632
#rb Sean.Sweeney

[CL 28313218 by chris constantinescu in ue5-main branch]
2023-09-28 06:52:15 -04:00
joe kirchoff
2864b992e7 UnrealBuildTool: Remove defunct HybridExecutor
[CL 28293691 by joe kirchoff in ue5-main branch]
2023-09-27 17:10:23 -04:00
joe kirchoff
b3246e76a1 UnrealBuildTool: Scan AutoSDK for WindowsSDKs rather than hardcoding a single folder to use. This will allow separate versioned folders for Windows SDKs rather than putting all versions into Windows Kits/10
#rnx

[CL 28293011 by joe kirchoff in ue5-main branch]
2023-09-27 17:00:06 -04:00
yiliang siew
d9127095f8 Disable passing /Os and pass /Ob0 when using clang-cl in debug builds by default since otherwise it
interferes with debugging `clang-cl`-generated executables in Visual Studio.
#rb Neil.Henning
#rb Joe.Kirchoff

[CL 28289095 by yiliang siew in ue5-main branch]
2023-09-27 16:01:34 -04:00
dmytro ivanov
8dea99a66a On Android only enable vulkan validation layers in debug in UE, in debug & development in Fortnite.
Copy validation layers .so in any non shipping build.
#jira UE-185390
#rb Dmitriy.Dyomin

[CL 28268168 by dmytro ivanov in ue5-main branch]
2023-09-27 06:16:11 -04:00
henrik karlsson
4e5cfbd978 [UBT]
* Disable box for pgo optimized msvc link actions

[CL 28264489 by henrik karlsson in ue5-main branch]
2023-09-27 01:41:09 -04:00
joe kirchoff
e73f16593a UnrealBuildTool: Additional extensions for clang singlefile compiles
#rnx

[CL 28258245 by joe kirchoff in ue5-main branch]
2023-09-26 20:52:57 -04:00
joe kirchoff
a6e94ff649 UnrealBuildTool: Invalidate makefile if a header only directory is added or removed
#jira UE-191921

[CL 28257409 by joe kirchoff in ue5-main branch]
2023-09-26 20:28:19 -04:00
joe kirchoff
55dc07301f Prevent unnecessary rebuilds of windows resource files for development builds to reduce how often binaries relink
Only embed info from Build.version in exes and dlls for precompiled or shipping targets. This information is always available at runtime via the BuildSettings module regardless of being embedded in the binaries
Set default windows resource ProductVersion to ENGINE_VERSION_STRING if BUILD_VERSION is not defined

#jira UE-195983
#rb ryan.hummer

[CL 28250002 by joe kirchoff in ue5-main branch]
2023-09-26 17:42:24 -04:00
daniel lamb
3e286ea58e Linux can now be cooked on windows platforms without the sdk installed.
Added override cook platform for use by content beacon to the datadrivenplatforminfo.
[REVIEW] [at]Josh.Adams

[CL 28223391 by daniel lamb in ue5-main branch]
2023-09-26 09:13:27 -04:00
josh adams
d975e8d700 - Fixed rpath calculation of paths relative to the executable, so .apps under locations other than Binaries/Mac can find thirdparty dylibs
#rb calvin.zheng

[CL 28209311 by josh adams in ue5-main branch]
2023-09-25 18:24:12 -04:00
thomas ross
c549d7a65d Android Studio build improvements:
- Allow pass through of BypassGradlePackaging argument in UBT
- Allow setting skippackage to actually skip packaging on Android in UBT
- Fix to Android Studio detection to skip build.gradle stomping when building in RunUAT or VisualStudio. Requires setting File > Settings > Build, Execution, Deployment > Build Tools > Gradle > "Generate *.iml files for modules imported from Gradle"
- Save RunConfiguration for app config in AndroidStudio so that we can load already having the debugger set to dual and the correct LLDB StartupCommand set.
#tests Android, Dev, Client, compile, mobile
#rb swarm

[CL 28206857 by thomas ross in ue5-main branch]
2023-09-25 17:28:13 -04:00
joe kirchoff
4483097e31 UnrealBuildTool: Preferr 2022 msbuild
#rnx

[CL 28205494 by joe kirchoff in ue5-main branch]
2023-09-25 17:01:11 -04:00
Ben Marsh
25cf46287e UBT: Fix building on ARM64.
[CL 28193936 by Ben Marsh in ue5-main branch]
2023-09-25 13:30:35 -04:00
henrik karlsson
c5ae28e065 Disable UE_DEBUG_SECTION when building with header units because it causes linker errors
[CL 28173711 by henrik karlsson in ue5-main branch]
2023-09-23 14:37:17 -04:00
henrik karlsson
7945247356 Header unit fixes (and disabling a few warnings)
[CL 28173546 by henrik karlsson in ue5-main branch]
2023-09-23 14:10:24 -04:00
henrik karlsson
65b9042153 [UBT]
* Added support for pch using header units.

#rb joe.kirchoff

[CL 28138630 by henrik karlsson in ue5-main branch]
2023-09-22 11:51:23 -04:00
dmytro ivanov
1b8c85f1c4 Enabling Vulkan Validation Layers on Android
#jira UE-185390
#rb Jack.Porter

[CL 28129801 by dmytro ivanov in ue5-main branch]
2023-09-22 07:18:17 -04:00
adam kinge
5a69eb894e Add a new Platform VisionOS Project Settings panel to enable/disable VisionOS's full immersion vs window mode
#jira UE-194826
#rb josh.adams

[CL 28113411 by adam kinge in ue5-main branch]
2023-09-21 19:03:01 -04:00
joe kirchoff
e308cad115 UnrealBuildTool: Use Hostarm64 compiler if running on an arm64 cpu
#rnx

[CL 28111451 by joe kirchoff in ue5-main branch]
2023-09-21 18:28:05 -04:00
joe kirchoff
fad43e3280 UnrealBuildTool: Add setting to control disabling some debug info optimizations when compiling msvc platforms with clang that can in some cases cause missing debug information
Can be enabled with
* TargetRules: WindowsPlatform.bClangStandaloneDebug
* INI: /Script/WindowsTargetPlatform.WindowsTargetSettings - bClangStandaloneDebug
* Cmd Line: -ClangStandaloneDebug

This will cause link time and pdb size to increase, expecially for monolithic targets

#jira UE-193836

[CL 28108216 by joe kirchoff in ue5-main branch]
2023-09-21 17:34:18 -04:00
henrik karlsson
c539005477 [UBT]
* Added EpicGames.Oodle to UnrealBuildTool solution to fix compile errors

[CL 28102619 by henrik karlsson in ue5-main branch]
2023-09-21 16:12:04 -04:00