Commit Graph

95 Commits

Author SHA1 Message Date
brandon schaefer
bc4c2ca6d6 Fix race condition when -nodebuginfo is set. Was trying to strip the debug info twice on the same so
#jira UE-82389
#rb Arciel.Rekman

#ROBOMERGE-SOURCE: CL 9871297 in //UE4/Release-4.24/...
#ROBOMERGE-BOT: RELEASE (Release-4.24 -> Main) (v548-9842178)

[CL 9871300 by brandon schaefer in Main branch]
2019-10-28 13:56:06 -04:00
ben marsh
9170b5f44a Enable shadow variable warnings as errors by default for projects that are using the latest UBT build settings. Allow setting the warning/error level on a per-module and per-target basis.
The engine will always be built with it as an error.

#rb none
[FYI] Marc.Audy
#jira none

#ROBOMERGE-SOURCE: CL 9839163 in //UE4/Release-4.24/...
#ROBOMERGE-BOT: RELEASE (Release-4.24 -> Main) (v546-9757112)

[CL 9839167 by ben marsh in Main branch]
2019-10-25 10:39:37 -04:00
Michael Sartain
97f7ebe128 Fix Linux address sanitizer builds
When linking shared libs (DSOs) under Linux, we need the -shared-libsan option. This will cause us to load the libclang_rt.asan-x86_64.so, etc and not static link so we need to add the path to the executable rpath.

	https://github.com/google/sanitizers/issues/1086
	https://www.gitmemory.com/issue/google/sanitizers/1086/509784249

Add linux sanitizer information to build details if set. Should look something like this:

------- Build details --------
Using system toolchain.
Using clang (/usr/bin/clang++) version '8.0.1' (string), 8 (major), 0 (minor), 1 (patch)
Using bundled libc++ standard C++ library.
Using lld linker
Using llvm-ar : /usr/bin/llvm-ar
Building with: AddressSanitizer
Using fast way to relink  circularly dependent libraries (no FixDeps).
------------------------------

Cherry pick 9953880, 2539328

#jira none
#rb Brandon.Schaefer

[CL 9619854 by Michael Sartain in 4.24 branch]
2019-10-16 12:50:13 -04:00
Michael Sartain
9d5144c00f Remove falling back to system compiler by default on Linux
We now only check for and use the system compiler if "-ForceUseSystemCompiler" command line is passed
Also don't default to epic compiler if -ForceUseSystemCompiler specified and we can't find the system compiler

More descriptive error messages when linux sdk toolchain not found

  $ LINUX_MULTIARCH_ROOT=/tmp/foobar make BlankProgram
  bash "/epic/UE4-23.git/Engine/Build/BatchFiles/Linux/Build.sh" BlankProgram Linux Development
  Fixing inconsistent case in filenames.
  Setting up Mono
  Building BlankProgram...
  Unable to locate Linux SDK toolchain at /tmp/foobar/x86_64-unknown-linux-gnu.
  ERROR: GetBuildPlatform: No BuildPlatform found for Linux
  make: *** [Makefile:183: BlankProgram] Error 5

  $ make BlankProgram ARGS="-forceusesystemcompiler"
  bash "/epic/UE4-23.git/Engine/Build/BatchFiles/Linux/Build.sh" BlankProgram Linux Development  -forceusesystemcompiler
  Fixing inconsistent case in filenames.
  Setting up Mono
  Building BlankProgram...
  Unable to locate system compiler (-ForceUseSystemCompiler specified).
  ERROR: GetBuildPlatform: No BuildPlatform found for Linux
  make: *** [Makefile:183: BlankProgram] Error 5

  $ LINUX_MULTIARCH_ROOT= make BlankProgram
  bash "/epic/UE4-23.git/Engine/Build/BatchFiles/Linux/Build.sh" BlankProgram Linux Development
  Fixing inconsistent case in filenames.
  Setting up Mono
  Building BlankProgram...
  Unable to locate Linux SDK toolchain. Please run Setup.sh.
  ERROR: GetBuildPlatform: No BuildPlatform found for Linux
  make: *** [Makefile:183: BlankProgram] Error 5

Cherry pick 9465561, 9472982, 9602106

#jira UE-81290
#rb Brandon.Schaefer

[CL 9619823 by Michael Sartain in 4.24 branch]
2019-10-16 12:45:42 -04:00
brandon schaefer
40aea43f64 Remove -glldb from LinuxToolchain.cs breaks gdb 8 debugging info
#jira none
#rb none
[FYI] Arciel.Rekman, Michael.Sartain
#lockdown cristina.riveron

#ROBOMERGE-SOURCE: CL 9473389 in //UE4/Release-4.23/...
#ROBOMERGE-BOT: RELEASE (Release-4.23 -> Main) (v508-9471939)

[CL 9473403 by brandon schaefer in Main branch]
2019-10-08 11:20:47 -04:00
michael sartain
523c0f746e update error message to reference LINUX_MULTIARCH_ROOT since LINUX_ROOT is deprecated
#rb Brandon.Schaefer
#jira none
#lockdown cristina.riveron

#ROBOMERGE-SOURCE: CL 9379853 in //UE4/Release-4.23/...
#ROBOMERGE-BOT: RELEASE (Release-4.23 -> Main) (v456-9359915)

[CL 9379861 by michael sartain in Main branch]
2019-10-02 15:19:16 -04:00
Josh Markiewicz
d79515867d Copying //UE4/Dev-Online to Dev-Main (//UE4/Dev-Main)
- Up to CL8320930 from DevOnline and 8311605 Merge Down from Main
- skipped some Fortnite content/plugins/code where it tried to reintegrate files that had been moved pending investigation
#rb none

[CL 8321295 by Josh Markiewicz in Main branch]
2019-08-26 18:35:22 -04:00
brandon schaefer
112182699f Fix cross compiling for Linux with XGE
#jira none
#rb Arciel.Rekman
#lockdown cristina.riveron

#ROBOMERGE-SOURCE: CL 8294902 in //UE4/Release-4.23/...
#ROBOMERGE-BOT: RELEASE (Release-4.23 -> Main) (v401-8057353)

[CL 8294905 by brandon schaefer in Main branch]
2019-08-26 12:02:39 -04:00
brandon schaefer
52f92969eb Fix clang supported version
#jira none
#rb none
#lockdown cristina.riveron

#ROBOMERGE-OWNER: ben.marsh
#ROBOMERGE-AUTHOR: brandon.schaefer
#ROBOMERGE-SOURCE: CL 8045580 in //UE4/Release-4.23/... via CL 8045581
#ROBOMERGE-BOT: BUILD (Main -> Dev-Build) (v400-8057353)

[CL 8058419 by brandon schaefer in Dev-Build branch]
2019-08-15 08:36:06 -04:00
michael sartain
26bfc09b84 Linux lld: Use -fno-pie flag when compiling with clang 8.0 or higher
#jira UE-78933
#rb Arciel.Rekman, Brandon.Schaefer
#lockdown cristina.riveron

#ROBOMERGE-OWNER: ben.marsh
#ROBOMERGE-AUTHOR: michael.sartain
#ROBOMERGE-SOURCE: CL 8044326 in //UE4/Release-4.23/... via CL 8044339
#ROBOMERGE-BOT: BUILD (Main -> Dev-Build) (v400-8057353)

[CL 8058411 by michael sartain in Dev-Build branch]
2019-08-15 08:35:58 -04:00
brandon schaefer
38c69b882a Allow 8.0.1 clang
Fix build issue

#jira none
#rb none
#lockdown cristina.riveron

#ROBOMERGE-OWNER: ben.marsh
#ROBOMERGE-AUTHOR: brandon.schaefer
#ROBOMERGE-SOURCE: CL 8042429 in //UE4/Release-4.23/... via CL 8042430
#ROBOMERGE-BOT: BUILD (Main -> Dev-Build) (v400-8057353)

[CL 8058406 by brandon schaefer in Dev-Build branch]
2019-08-15 08:35:54 -04:00
brandon schaefer
f0c31f2adf Fix clang supported version
#jira none
#rb none
#lockdown cristina.riveron

#ROBOMERGE-SOURCE: CL 8045580 in //UE4/Release-4.23/...
#ROBOMERGE-BOT: RELEASE (Release-4.23 -> Main) (v399-8035122)

[CL 8045581 by brandon schaefer in Main branch]
2019-08-14 19:45:43 -04:00
michael sartain
0c0c676535 Linux lld: Use -fno-pie flag when compiling with clang 8.0 or higher
#jira UE-78933
#rb Arciel.Rekman, Brandon.Schaefer
#lockdown cristina.riveron

#ROBOMERGE-SOURCE: CL 8044326 in //UE4/Release-4.23/...
#ROBOMERGE-BOT: RELEASE (Release-4.23 -> Main) (v399-8035122)

[CL 8044339 by michael sartain in Main branch]
2019-08-14 17:39:39 -04:00
brandon schaefer
1bf9ce0b1c Allow 8.0.1 clang
Fix build issue

#jira none
#rb none
#lockdown cristina.riveron

#ROBOMERGE-SOURCE: CL 8042429 in //UE4/Release-4.23/...
#ROBOMERGE-BOT: RELEASE (Release-4.23 -> Main) (v399-8035122)

[CL 8042430 by brandon schaefer in Main branch]
2019-08-14 16:29:42 -04:00
joe conley
31c7d47531 #jira UE-73217 - Support latest version of OpenVR for SteamVR
OpenVR 1.5.17 was released, so adding support for that.

#rb sdkupgrade

#ROBOMERGE-OWNER: ben.marsh
#ROBOMERGE-AUTHOR: joe.conley
#ROBOMERGE-SOURCE: CL 7478901 in //UE4/Release-4.23/... via CL 7478906
#ROBOMERGE-BOT: BUILD (Main -> Dev-Build) (v372-7473910)

[CL 7587662 by joe conley in Dev-Build branch]
2019-07-24 01:12:19 -04:00
joe conley
327b85f6e4 #jira UE-73217 - Support latest version of OpenVR for SteamVR
OpenVR 1.5.17 was released, so adding support for that.

#rb sdkupgrade

#ROBOMERGE-SOURCE: CL 7478901 in //UE4/Release-4.23/...
#ROBOMERGE-BOT: RELEASE (Release-4.23 -> Main) (v372-7473910)

[CL 7478906 by joe conley in Main branch]
2019-07-22 17:20:47 -04:00
joe conley
fe4dd14805 #jira UE-73217 - Support latest version of OpenVR for SteamVR
Back out changelist 7283639 to restore 7278862 and 7281835 to add support for latest version of OpenVR

#jira UE-77190 - Crash when launching onto Windows - OpenVR_api_dll

Changed version string in SteamVRPrivate that was causing a crash on launch on / packaged game (but not in PIE, oddly enough)
Changed version string in Linux file for SteamVR

#rb trivial

#ROBOMERGE-OWNER: ben.marsh
#ROBOMERGE-AUTHOR: joe.conley
#ROBOMERGE-SOURCE: CL 7312987 in //UE4/Release-4.23/... via CL 7312992
#ROBOMERGE-BOT: BUILD (Main -> Dev-Build) (v371-7306989)

[CL 7359553 by joe conley in Dev-Build branch]
2019-07-17 02:09:43 -04:00
joe conley
de9275bcb8 #jira UE-73217 - Support latest version of OpenVR for SteamVR
Back out changelist 7283639 to restore 7278862 and 7281835 to add support for latest version of OpenVR

#jira UE-77190 - Crash when launching onto Windows - OpenVR_api_dll

Changed version string in SteamVRPrivate that was causing a crash on launch on / packaged game (but not in PIE, oddly enough)
Changed version string in Linux file for SteamVR

#rb trivial

#ROBOMERGE-SOURCE: CL 7312987 in //UE4/Release-4.23/...
#ROBOMERGE-BOT: RELEASE (Release-4.23 -> Main) (v371-7306989)

[CL 7312992 by joe conley in Main branch]
2019-07-15 17:13:39 -04:00
Joakim Lindqvist
1daa186c0c Add -fdiagnostics-absolute-paths to clang builds on linux to get fully qualifed paths to all files involved when a error happens in a header
#rb ben.marsh

[CL 7039070 by Joakim Lindqvist in Dev-Build branch]
2019-06-17 03:23:04 -04:00
ben marsh
b29774f4df Copying //UE4/Dev-Networking to Dev-Main (//UE4/Dev-Main)
#rb none

#ROBOMERGE-OWNER: ben.marsh
#ROBOMERGE-AUTHOR: ryan.gerleve
#ROBOMERGE-SOURCE: CL 6843774 in //UE4/Main/...
#ROBOMERGE-BOT: BUILD (Main -> Dev-Build) (v366-6836689)

[CL 6910469 by ben marsh in Dev-Build branch]
2019-06-10 08:37:30 -04:00
chris gagnon
72ba51c5bd Copying //UE4/Dev-Editor to Dev-Main (//UE4/Dev-Main) for 4.23 From CL 6837861
#rb none


#ROBOMERGE-OWNER: ben.marsh
#ROBOMERGE-AUTHOR: chris.gagnon
#ROBOMERGE-SOURCE: CL 6838042 in //UE4/Main/...
#ROBOMERGE-BOT: BUILD (Main -> Dev-Build) (v366-6836689)

[CL 6874679 by chris gagnon in Dev-Build branch]
2019-06-07 05:27:42 -04:00
chris gagnon
35ad6f179e Copying //UE4/Dev-Editor to Dev-Main (//UE4/Dev-Main) for 4.23 From CL 6837861
#rb none


#ROBOMERGE-OWNER: ryan.gerleve
#ROBOMERGE-AUTHOR: chris.gagnon
#ROBOMERGE-SOURCE: CL 6838042 in //UE4/Main/...
#ROBOMERGE-BOT: ENGINE (Main -> Dev-Networking) (v366-6836689)

[CL 6842911 by chris gagnon in Dev-Networking branch]
2019-06-04 19:37:39 -04:00
ben marsh
ddca91885b Copying //UE4/Dev-Build to Dev-Main (//UE4/Dev-Main)
#rb none
#rnx

#ROBOMERGE-OWNER: ryan.gerleve
#ROBOMERGE-AUTHOR: ben.marsh
#ROBOMERGE-SOURCE: CL 6631504 in //UE4/Main/...
#ROBOMERGE-BOT: ENGINE (Main -> Dev-Networking) (v365-6733468)

[CL 6767855 by ben marsh in Dev-Networking branch]
2019-06-02 14:48:55 -04:00
Ben Marsh
4da2ffe9bb UBT: Attempt to reduce the command line length to fix CIS errors on Linux.
#rb none
#jira UE-74978

[CL 6616411 by Ben Marsh in Dev-Build branch]
2019-05-22 21:06:44 -04:00
Josh Adams
1e4b186150 - Big update to platforms: PlatformExtensions
- This allows for Confidential platforms to exist outside of the engine, and insert themselves in as needed
- Directory structure is, where .... mirrors the directory structure for Engine and projects
     - /Platforms/XXX/....
- Moving to more data driven approach for ShaderPlatforms and PlatformInfo, where they can be read from DataDrivenPlatformInfo.ini files that live in the platform config folders
- Removed platform mentions from UBT, by way of changing some enums to partial classes with static members (see UnrealTargetPlatform)
- Various other UBT/UAT modifications to allow for looking in other locations for files
- THIS IS NOT A COMPLETE AND FINAL SOLUTION. WE WILL CONTINUE WORK IN DEV-BUILD BEFORE ITS READY FOR PRIMETIME
#rb ben.marsh

[CL 6271418 by Josh Adams in Dev-Build branch]
2019-05-03 08:03:23 -04:00