[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#37483: [PATCH] macOS build error (aligned_alloc)
From: |
Mattias Engdegård |
Subject: |
bug#37483: [PATCH] macOS build error (aligned_alloc) |
Date: |
Mon, 23 Sep 2019 11:14:55 +0200 |
22 sep. 2019 kl. 22.14 skrev mituharu@math.s.chiba-u.ac.jp:
>
> You would need to install the Command Line Developer Tools with
> "xcode-select --install". In general this is necessary when the
> macOS version is older than the newest one Xcode supports. In
> the case of Xcode 11, it is macOS 10.15.
>
> Actually you don't need Xcode for building Emacs, but the Command
> Line Developer Tools would be sufficient.
Thank you, this is useful to know.
Even so, doesn't it make sense to make the configure script work with tools
that support newer OS versions? After all, we are not talking about cross-tools
or tools that can only generate code for newer versions. If I want to use the
most recent toolchain for my OS, these (Xcode 11) tools are the ones to use.
I first tried some other workarounds: configuring with
-Werror=unguarded-availability-new in CFLAGS will prevent
HAVE_DECL_ALIGNED_ALLOC from being defined, but HAVE_ALIGNED_ALLOC is not
affected because its config check doesn't include the standard header (by
design).