mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-08-06 18:00:28 +00:00
Fix the build on Apple Silicon
Build was broken by third_party/bash due to `__floatditf` not being found, even though `rg __floatditf` shows no results other than its definition. I don't know if __aarch64__ is the right check, but hopefully this commit will be short-lived.
This commit is contained in:
parent
2a11a09d98
commit
c312e25597
1 changed files with 8 additions and 0 deletions
8
third_party/bash/builtins_printf.c
vendored
8
third_party/bash/builtins_printf.c
vendored
|
@ -193,6 +193,14 @@ static intmax_t tw;
|
|||
static char *conv_buf;
|
||||
static size_t conv_bufsize;
|
||||
|
||||
#ifdef __aarch64__
|
||||
#define _COSMO_SOURCE
|
||||
#include "libc/assert.h"
|
||||
void __floatditf(int a) { // XXX TODO FIXME missing symbol not found in source
|
||||
npassert(false);
|
||||
}
|
||||
#endif /* __arch64__ */
|
||||
|
||||
int
|
||||
printf_builtin (list)
|
||||
WORD_LIST *list;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue