3 ms·
> This prints something on a screen. It does not prevent the usage. -Werror=...? > It was used, and now you've detected its usage. It did not prevent the us
by kazinator 4y ago
> This prints something on a screen. It does not prevent the usage.
-Werror=...?
> It was used, and now you've detected its usage. It did not prevent the usage.
foo_image: $(OBJS)
....
if $(NM) $@ | grep -s -E 'malloc|...' ; then \
echo "dynamic allocation not allowed" ; \
exit 1 ; \
fi
- nomel 4y agoI guess it's opinion, but these are both "soft" checks, in my eyes. To me, "prevent" means it's not possible. These solutions are external checks, rather than "it literally can't work". In our case, it literally could not be allowed to work.