tech-pkg archive

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

Re: clang and -Qunused-arguments





On 4/8/25 1:26 PM, Adam wrote:
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.)

*sigh* The correct way would be to check if the flag is accepted AND actually sets __SSE2__ macro.

Do we need -Qunused-arguments to be always prepended and appended to the compiler flags?

Given that GCC will just accept random arguments itself to pass to the linker, feel free to fix everything first...

Joerg


Home | Main Index | Thread Index | Old Index