Commit 05ea3e9
authored
[UR][XPTI] Fix RelWithDebInfo and MinSizeRel builds on Windows. (#20078)
CMake `RelWithDebInfo` builds failed on Windows because the Unified
Runtime attempted to link with a `Debug` build of XPTI. Fortunately, the
mismatch was detected by `lld-link` and it failed the build with the
following error:
`error: /failifmismatch: mismatch detected for '_ITERATOR_DEBUG_LEVEL'`
The mismatch was due to a CMake generator expression in the Unified
Runtime `CMakeLists.txt` that failed to account for `RelWithDebInfo` and
`MinSizeRel` builds.
Investigation of the above also resulted in the identification of an
issue in the XPTI `CMakeLists.txt` file; use of
`CMAKE_CXX_FLAGS_MINSIZEREL` for a `RelWithDebInfo` build and
`CMAKE_CXX_FLAGS_RELWITHDEBINFO` for a `MinSizeRel` build.1 parent dcd4720 commit 05ea3e9
2 files changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
225 | 225 | | |
226 | 226 | | |
227 | 227 | | |
228 | | - | |
| 228 | + | |
229 | 229 | | |
230 | 230 | | |
231 | 231 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
39 | | - | |
40 | 38 | | |
| 39 | + | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
0 commit comments