11

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 1

11

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.

2
  • 2
    I 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?
    – ack
    Nov 12, 2014 at 5:10
  • 2
    They may be indicating that the feature is likely to cause bugs, and that the user should be afraid of it for this reason.
    – Catskul
    Aug 6, 2018 at 18:45

Your Answer

Reminder: Answers generated by Artificial Intelligence tools are not allowed on Stack Overflow. Learn more

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.