tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

clang and -Qunused-arguments



In mk/compiler/clang.mk, -Qunused-arguments is added to cwrappers. This has a fatal side effect when configuring packages with meson, which try to auto-detect SIMD compiler flags, like in gimp-devel:

clang -Qunused-arguments -msse2 ...

will always return status 0 and make meson think the flag is supported. (The expected behaviour is to return status 1 when it is not supported, like on ARM64.)

Do we need -Qunused-arguments to be always prepended and appended to the compiler flags? Or is it a leftover from the older times? I would remove this hack, and eventually fix broken packages one by one. Explicit is better than implicit.

Or maybe there is a better solution?

Kind regards,
Adam


Home | Main Index | Thread Index | Old Index