# check\_ipo\_supported returns false with clang msys2 version on windows.

**URL:** https://discourse.cmake.org/t/check-ipo-supported-returns-false-with-clang-msys2-version-on-windows/13436
**Category:** Usage
**Created:** [January 20, 2025, 3:48pm UTC](https://discourse.cmake.org/t/check-ipo-supported-returns-false-with-clang-msys2-version-on-windows/13436 "2025-01-20T15:48:36Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![adaldev](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/a/9dc877/32.png) [@adaldev](https://discourse.cmake.org/u/adaldev)
#### Post date: [January 20, 2025, 3:48pm UTC](https://discourse.cmake.org/t/check-ipo-supported-returns-false-with-clang-msys2-version-on-windows/13436/1 "2025-01-20T15:48:36Z")

</div>

Everything in the object 🙂  
`check_ipo_supported(RESULT IPO_SUPPORTED)` returns `IPO_SUPPORTED` as true for msvc and msys2/gcc but false for msys2/clang.

According to `clang --help` `flto` options are available.

Is it a bug, a incomplete clang installation?

Regards,  
A.
