I found an error in the CMakeList.txt file used to compile XboxOne PhysX library (3.4). The compiler flag declared at the line 20 should be wrong because there is written /0x instead of /Ox

This is causing the Release (Shipping) version of PhysX to be built with /O2 instead of /Ox on Xbox, whereas Profile and Checked are compiled with /Ox


This was flagged back in Mar '17 but it looks like it dropped off the radar. I have also found the same issue with the Apex CMakeList.txt file as well so I'll fix that up.



Steps to Reproduce

Build PhysX for Xbox in Release.

Notice that there are compile warnings about undefined compiler flags:

/0x and /02


Have Comments or More Details?

There's no existing public thread on this issue, so head over toAnswerHub just mention UE-68055 in the post.

Login to Vote

Affects Versions4.15
Target Fix4.22
Fix Commit4709402
CreatedJan 7, 2019
ResolvedJan 11, 2019
UpdatedFeb 5, 2019