mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
demos: Build with -fno-lto.
Some versions of Clang do not properly pass include paths to the assembler when LTO is enabled. That's a problem for the DEMO_EMBED macro used by the demos, since it relies on .incbin. To make matters even better, compilation fails, but doesn't return an error code; the resulting binary is simply broken. Fortunately we don't really care about LTO for the demos, so we can simply disable it. See also https://github.com/llvm/llvm-project/issues/112920 Thanks to Giovanni for tracking down some of the pieces of this issue.
This commit is contained in:
Notes:
Henri Verbeet
2025-05-14 15:26:43 +02:00
Approved-by: Henri Verbeet (@hverbeet) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1492
@@ -197,6 +197,7 @@ case $host_os in
|
||||
AC_SUBST([DEMO_CFLAGS],[$XCB_CFLAGS])
|
||||
;;
|
||||
esac
|
||||
VKD3D_CHECK_CFLAGS([-fno-lto], [DEMO_CFLAGS="$DEMO_CFLAGS -fno-lto"])
|
||||
AM_CONDITIONAL([BUILD_DEMOS], [test "x$enable_demos" = "xyes"])
|
||||
AM_CONDITIONAL([BUILD_DOC], [test $DX_FLAG_doc = 1])
|
||||
AM_CONDITIONAL([BUILD_TESTS], [test "x$enable_tests" != "xno"])
|
||||
|
Reference in New Issue
Block a user