Commit cac3383
committed
[godot] Fix compile_commands.json generation on Ubuntu without X11
The setup.sh script was always trying to generate compile_commands.json
for IDE integration, which triggered SCons platform auto-detection. On
Ubuntu runners without X11 libraries (used for Android/Web builds),
this caused the build to fail.
Changes:
- Only generate compile_commands.json in dev mode (CI uses dev=false)
- Explicitly specify the platform parameter for SCons
- On Linux, check if X11 libraries are available before attempting generation
- Skip generation gracefully if X11 is not available
This fixes the Android and Web template builds in GitHub Actions.1 parent ad18e2e commit cac3383
1 file changed
+37
-21
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
84 | 92 | | |
85 | | - | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
86 | 102 | | |
87 | | - | |
88 | 103 | | |
89 | | - | |
90 | | - | |
| 104 | + | |
| 105 | + | |
91 | 106 | | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
99 | 114 | | |
100 | | - | |
| 115 | + | |
| 116 | + | |
101 | 117 | | |
102 | 118 | | |
0 commit comments