Toolchain: Take CMAKE_<lang>_FLAGS_INIT into account during compiler detection

Fixes: #20040
1 file changed