Skip to content

Commit b3d72ac

Browse files
committed
fix: add workaround for implicit function declaration in Qt 6.8.x on arm64
1 parent 9d65f59 commit b3d72ac

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

packages/PyQt6-Qlementine/project.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,8 +300,13 @@ def apply_user_defaults(self, tool):
300300
if sys.platform == "win32":
301301
self.builder_settings.append("QMAKE_CXXFLAGS += /std:c++17 /W0")
302302
else:
303+
# -Wno-implicit-function-declaration works around Qt 6.8.x's
304+
# qyieldcpu.h calling __yield() on arm64 without including
305+
# <arm_acle.h>; Apple clang 21 trusts __has_builtin(__yield) but
306+
# can't resolve the call. No-op under GCC C++ compiles.
303307
self.builder_settings.append(
304-
"QMAKE_CXXFLAGS += -std=c++17 -Wno-error -Wno-overloaded-virtual"
308+
"QMAKE_CXXFLAGS += -std=c++17 -Wno-error "
309+
"-Wno-overloaded-virtual -Wno-implicit-function-declaration"
305310
)
306311

307312
super().apply_user_defaults(tool)

0 commit comments

Comments
 (0)