Commit d9dbec9
LLVM backend: on Windows use clang instead of llc
llc.exe is not included with the LLVM official Windows binaries. clang can
compile .ll files too but requires different args.
This behaviour is gated by __FB_WIN32__ because there doesn't seem to be an
existing way to check whether a tool exists. It would be better to fallback to
clang only if llc doesn't exist (for example I see it is missing from at least
some Android NDK toolchains too).
Tested on Linux, not Windows.1 parent dfdee71 commit d9dbec9
2 files changed
Lines changed: 46 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
197 | 197 | | |
198 | 198 | | |
199 | 199 | | |
| 200 | + | |
200 | 201 | | |
201 | 202 | | |
202 | 203 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3082 | 3082 | | |
3083 | 3083 | | |
3084 | 3084 | | |
| 3085 | + | |
| 3086 | + | |
| 3087 | + | |
| 3088 | + | |
| 3089 | + | |
3085 | 3090 | | |
3086 | 3091 | | |
3087 | 3092 | | |
| |||
3190 | 3195 | | |
3191 | 3196 | | |
3192 | 3197 | | |
| 3198 | + | |
| 3199 | + | |
| 3200 | + | |
| 3201 | + | |
| 3202 | + | |
| 3203 | + | |
| 3204 | + | |
| 3205 | + | |
| 3206 | + | |
3193 | 3207 | | |
3194 | 3208 | | |
3195 | | - | |
| 3209 | + | |
| 3210 | + | |
| 3211 | + | |
| 3212 | + | |
| 3213 | + | |
3196 | 3214 | | |
3197 | | - | |
| 3215 | + | |
| 3216 | + | |
| 3217 | + | |
| 3218 | + | |
| 3219 | + | |
3198 | 3220 | | |
3199 | | - | |
| 3221 | + | |
| 3222 | + | |
| 3223 | + | |
| 3224 | + | |
| 3225 | + | |
3200 | 3226 | | |
3201 | 3227 | | |
3202 | 3228 | | |
| |||
3230 | 3256 | | |
3231 | 3257 | | |
3232 | 3258 | | |
3233 | | - | |
| 3259 | + | |
| 3260 | + | |
| 3261 | + | |
| 3262 | + | |
| 3263 | + | |
3234 | 3264 | | |
3235 | 3265 | | |
3236 | 3266 | | |
| |||
3242 | 3272 | | |
3243 | 3273 | | |
3244 | 3274 | | |
3245 | | - | |
| 3275 | + | |
| 3276 | + | |
| 3277 | + | |
| 3278 | + | |
| 3279 | + | |
3246 | 3280 | | |
3247 | 3281 | | |
3248 | 3282 | | |
| |||
3260 | 3294 | | |
3261 | 3295 | | |
3262 | 3296 | | |
3263 | | - | |
| 3297 | + | |
| 3298 | + | |
| 3299 | + | |
| 3300 | + | |
| 3301 | + | |
| 3302 | + | |
3264 | 3303 | | |
3265 | 3304 | | |
3266 | 3305 | | |
| |||
0 commit comments