mesonbuild/meson

Prioritize clang ObjC compiler over gobjc

Open

#6222 aperta il 22 nov 2019

Vedi su GitHub
 (3 commenti) (0 reazioni) (0 assegnatari)Python (1465 fork)batch import
good first issuehelp wanted

Metriche repository

Star
 (4978 star)
Metriche merge PR
 (Merge medio 30g 19h) (63 PR mergiate in 30 g)

Descrizione

Currently meson prefers the GNU ObjC compiler if both it and the clang one are available. This is a bit suboptimal as gobjc doesn't support ARC for example, and is generally left behind a decade or more in terms of ObjC features.

On macOS systems where both are installed you will likely not be able to compile anything using system APIs with gobjc.

In addition it might also be helpful to add some feature checks for ObjC compilers, e.g. if ARC or blocks are properly supported.

Guida contributor