Commit 7a65e6b
fix(cefpython.pyx): guard X11 error-handler install at compile time
Wrapping the InstallX11ErrorHandlers() call with a runtime
sys.platform check is not enough — Cython still semantically
analyses the right-hand side, and _g_linux_wayland_mode is only
defined when window_utils_linux.pyx is included in the build
(Linux only). macOS / Windows builds therefore fail with
"undeclared name not builtin: _g_linux_wayland_mode" during
Cython compilation.
Use the existing IF UNAME_SYSNAME == "Linux" compile-time
directive (same pattern used for the other Linux-only blocks in
this file at lines 580, 845, 990, 1021) so the body is excluded
on non-Linux hosts. The redundant runtime sys.platform check
inside it is dropped.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent bd924c4 commit 7a65e6b
1 file changed
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
699 | 699 | | |
700 | 700 | | |
701 | 701 | | |
702 | | - | |
703 | | - | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
704 | 709 | | |
705 | 710 | | |
706 | 711 | | |
| |||
0 commit comments