Compiler identification is not fairly straightforward when you remove all metadata that gives you hints. It gets worse when you fake the metadata.
My opinion echoed by many top people in reverse engineering industry.
Modern C++ is obfuscated by default due to templates, inlined functions and of course OOP.
For example, Marcus Hutchins famously echoed Boost is a cluster fuck of sadness.
My point is not about obfuscation anyway but it does helps obfuscation to some extent. It's about reverse engineering the optimized code and recover the original non-optimized code which can have a lot of use-cases.
https://www.msreverseengineering.com had a course on this subject. Experienced ones can reverse everything but my point is that it increase the barrier.