Update detours (#18447)
Summary of the issue:
Our bundled version of Detours is over two years old. Since October last year, updates have been added that mainly fix bugs.
While at it, I also discovered that LINKFLAGS wasn't used for detours, which is a static lib. I added the relevant flags to ARFLAGS.
Description of user facing changes:
None
Description of developer facing changes:
None
Description of development approach:
Updated submodule
Populated ARFLAGS with relevant flags from LINKFLAGS that apply to static libs.