When Homebrew compiles libgcrypt on OS X, it patches it to use clang and add -std=gnu89
and -fheinous-gnu-extensions
to the CFLAG
Makefile var. What does the latter do?
1 Answer
https://clang.llvm.org/doxygen/SemaStmtAsm_8cpp.html says:
GNU C has an extremely ugly extension whereby they silently ignore "noop" casts in places where an lvalue is required by an inline asm. We emulate this behavior when -fheinous-gnu-extensions is specified, but provide a strong guidance to not use it.
No, I haven’t used it; I don’t know why Homebrew needed it.
-
2I wonder where this practice of highly opinionated option naming is going. When are we going to be forced to specify
-fby-using-this-option-you-surrender-your-soul-to-the-devil-and-will-burn-in-hell
?– ackNov 12, 2014 at 5:10 -
2They may be indicating that the feature is likely to cause bugs, and that the user should be afraid of it for this reason.– CatskulAug 6, 2018 at 18:45