Skip to content
  1. Aug 08, 2013
  2. Aug 07, 2013
    • Chandler Carruth's avatar
      Add support for linking against a curses library when available and · cad7e5e0
      Chandler Carruth authored
      using it to detect whether or not a terminal supports colors. This
      replaces a particularly egregious hack that merely compared the TERM
      environment variable to "dumb". That doesn't really translate to
      a reasonable experience for users that have actually ensured their
      terminal's capabilities are accurately reflected.
      
      This makes testing a terminal for color support somewhat more expensive,
      but it is called very rarely anyways. The important fast path when the
      output is being piped somewhere is already in place.
      
      The global lock may seem excessive, but the spec for calling into curses
      is *terrible*. The whole library is terrible, and I spent quite a bit of
      time looking for a better way of doing this before convincing myself
      that this was the fundamentally correct way to behave. The damage of the
      curses library is very narrowly confined, and we continue to use raw
      escape codes for actually manipulating the colors which is a much sane
      system than directly using curses here (IMO).
      
      If this causes trouble for folks, please let me know. I've tested it on
      Linux and will watch the bots carefully. I've also worked to account for
      the variances of curses interfaces that I could finde documentation for,
      but that may not have been sufficient.
      
      llvm-svn: 187874
      cad7e5e0
  3. Apr 23, 2013
  4. Jul 07, 2012
  5. Feb 13, 2012
    • Dylan Noblesmith's avatar
      add LLVM_VERSION_MAJOR and _MINOR defines · c6c7a581
      Dylan Noblesmith authored
      This is useful for clients that want to maintain compatibility
      across multiple releases of LLVM. Currently users like Klee and
      Mesa all have to roll their own 'parse llvm-config --version
      output and generate defines' solution.
      
      Also reuse the new macros so that version information is less
      redundant/likely to fall out of sync again in the future.
      
      llvm-svn: 150405
      c6c7a581
  6. Jul 30, 2011
  7. Apr 13, 2011
  8. Apr 11, 2011
  9. Apr 10, 2011
  10. Apr 05, 2011
  11. Apr 03, 2011
  12. Feb 23, 2011
  13. Feb 22, 2011
  14. Feb 21, 2011
  15. Feb 03, 2011
  16. Sep 29, 2010
  17. Aug 11, 2010
  18. Aug 09, 2010
Loading