Repository navigation
Commit f13ec24
authored
feat: add native Linux ARM64 build target (linuxarm64) (#439)
generateLibs' Linux target has always been constructed via
newDefaultTarget(Os.Linux, Bitness._64), which defaults to
Architecture.x86 regardless of host architecture. That's the root
cause behind #105: even on a native aarch64 host, the task emits
x86-only compiler flags (-mfpmath=sse -msse -m64), which a real
aarch64 g++/gcc rejects outright.
gdx-jnigen 2.5.2 (the library this build script sits on top of)
already ships a correct Architecture.ARM Linux target
(aarch64-linux-gnu- prefix, -fPIC, no SSE flags) — this task just
never selects it.
Add an opt-in `linuxarm64` env (mirroring the existing `macosarm64`
convention) that builds via that target instead, refactoring the
existing x86 Linux target into a shared createLinuxTarget() helper
(mirroring createMacTarget()) so both paths stay in sync. libName is
pinned to libimgui-java64.so on both architectures for consistency,
matching how the mac target already does this for x86_64/arm64.1 parent d95baae commit f13ec24
1 file changed
Lines changed: 25 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
| |||
120 | 121 | | |
121 | 122 | | |
122 | 123 | | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
127 | 129 | | |
128 | 130 | | |
129 | 131 | | |
| |||
145 | 147 | | |
146 | 148 | | |
147 | 149 | | |
| 150 | + | |
| 151 | + | |
148 | 152 | | |
149 | 153 | | |
150 | 154 | | |
| |||
156 | 160 | | |
157 | 161 | | |
158 | 162 | | |
| 163 | + | |
| 164 | + | |
159 | 165 | | |
160 | 166 | | |
161 | 167 | | |
| |||
170 | 176 | | |
171 | 177 | | |
172 | 178 | | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
173 | 194 | | |
174 | 195 | | |
175 | 196 | | |
| |||
0 commit comments