Description

Licensee's project requires the bEnableExceptions flag to be set to true in the Build.cs file. The build compiles for Windows, but when attempting to package for Linux they get these errors:

 ProcessResult.StdOut:   [342/383] Compile testlinux.cpp
 ProcessResult.StdOut:   error: exception handling was disabled in PCH file but is currently enabled
 ProcessResult.StdOut:   error: definition of macro 'PLATFORM_EXCEPTIONS_DISABLED' differs between the precompiled header ('1') and the command line ('0')
 ProcessResult.StdOut:   2 errors generated.
 
Steps to Reproduce
  1. Set up Cross Compiling Tool-chain as described in: https://docs.unrealengine.com/en-us/Platforms/Linux/GettingStarted
  2. Open the UE4 Source Build and make a Basic C++ project
  3. In the Build.cs file of the new project add this line: bEnableExceptions = true;
  4. Compile and load the project
  5. Package project for Linux

Results: Packaging fails with 2 errors

Expected: The Project packages successfully

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-64973 in the post.

6
Login to Vote

Cannot Reproduce
ComponentUE - Platform - Linux
Affects Versions4.19.24.20.3
Target Fix4.21
CreatedOct 9, 2018
ResolvedOct 11, 2018
UpdatedOct 17, 2018
View Jira Issue