Description

Via UDN:

As has been discussed previously here and in CL 20055361, debug information is sometimes missing when compiling with Clang.

We've pinpointed this to debug information not being emitted for types that aren't defined and used by the current module. To circumvent this issue, clang has an [Link Removed] flag. Adding that flag in VCToolChain.cs fixes the issue for us.

This question was created in reference to: Natvis inconsistency between VS and Clang

 

Dev Notes:

  • Gather metrics on if -fstandalone-debug affects compile time and pdb size
Steps to Reproduce
  • Compile a Microsoft platform with clang
  • In some cases if a module does not define a type it will cause debug info to not be emitted

Have Comments or More Details?

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

2
Login to Vote

Fixed
ComponentUE - Foundation - Cpp Tools - UnrealBuildTool
Affects Versions5.3
Target Fix5.4
Fix Commit28108172
Main Commit28108216
CreatedAug 24, 2023
ResolvedSep 21, 2023
UpdatedOct 19, 2023
View Jira Issue