viable/strict/1789858227: Use language-specific cache keys for compiler flag checks (#197614)
- PyTorch: 1222 events in the last 90 days
- PyTorch: 1208th Release in the last 90 days
- Previous: earlier the same day · viable/strict/1789856642
What happened
The C and C++ flag helpers used the same cache variable for a given flag. Since CMake caches compiler-check results by variable name, the second helper could reuse the first language's result without testing its compiler. Prefix the cache variables with C or CXX so each language is checked independently. Motivation This issue was discovered by GPT-5.6-Sol while I was working on another feature. I don't think it has…
Summary assembled by rule from the sources below