1. 29 Aug, 2016 1 commit
    • Fix std::cout/std::cerr static initialization order fiasco. · cbcd7b65
      Eric Fiselier authored
      The benchmark library internals write to std::cout/std::cerr during program
      startup. This can cause segfaults when the user doesn't include <iostream> in
      the benchmark (which init's the streams). This patch fixes this by emitting
      a dynamic initializer in every TU which initializes the streams.
  2. 28 Aug, 2016 3 commits
  3. 11 Aug, 2016 2 commits
  4. 09 Aug, 2016 5 commits
  5. 08 Aug, 2016 7 commits
  6. 07 Aug, 2016 5 commits
  7. 04 Aug, 2016 1 commit
    • Support multiple ranges in the benchmark (#257) · dfe02607
      Marcin Kolny authored
      * Support multiple ranges in the benchmark
      
      google-benchmark library allows to provide up to two ranges to the
      benchmark method (range_x and range_y). However, in many cases it's not
      sufficient. The patch introduces multi-range features, so user can easily
      define multiple ranges by passing a vector of integers, and access values
      through the method range(i).
      
      * Remove redundant API
      
      Functions State::range_x() and State::range_y() have been removed. They should
      be replaced by State::range(0) and State::range(1).
      Functions Benchmark::ArgPair() and Benchmark::RangePair() have been removed.
      They should be replaced by Benchmark::Args() and Benchmark::Ranges().
  8. 03 Aug, 2016 2 commits
  9. 02 Aug, 2016 3 commits
  10. 25 Jul, 2016 1 commit
  11. 23 Jul, 2016 1 commit
  12. 22 Jul, 2016 5 commits
  13. 13 Jul, 2016 1 commit
  14. 12 Jul, 2016 1 commit
  15. 11 Jul, 2016 1 commit
  16. 06 Jul, 2016 1 commit
    • Add export linker flags policy to cmake (#251) · 2149577f
      Steve Downey authored
      Add policy CMP0056, which honors the link flags in try_compile and
      try_run. This allows for building against non-system libc++ by providing
      the correct -L and rpath options in a containing project.
      
      For example:
      
          set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -L ${LLVM_ROOT}/lib -l c++ -l c++abi")
          set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-rpath,${LLVM_ROOT}/lib")