1. 05 Jan, 2020 1 commit
  2. 14 Nov, 2019 1 commit
  3. 31 Oct, 2019 1 commit
  4. 23 Aug, 2019 1 commit
  5. 13 Aug, 2019 1 commit
  6. 11 Jun, 2019 11 commits
  7. 12 May, 2019 1 commit
  8. 24 Oct, 2018 2 commits
  9. 14 Sep, 2018 1 commit
  10. 29 Aug, 2018 2 commits
  11. 11 Jan, 2018 1 commit
  12. 02 Nov, 2017 1 commit
    • Unknown's avatar
      Trivial typos · 0b3f44eb
      Unknown authored
      Non-user facing. 
      Found using `codespell -q 3`
      0b3f44eb
  13. 10 Sep, 2017 1 commit
  14. 17 Aug, 2017 1 commit
  15. 14 Aug, 2017 1 commit
    • Jason Rhinelander's avatar
      Compile with hidden visibility always; set via cmake property rather than compiler flag · 97aa54fe
      Jason Rhinelander authored
      This updates the compilation to always apply hidden visibility to
      resolve the issues with default visibility causing problems under debug
      compilations.  Moreover using the cmake property makes it easier for a
      caller to override if absolutely needed for some reason.
      
      For `pybind11_add_module` we use cmake to set the property; for the
      targets, we append to compilation option to non-MSVC compilers.
      97aa54fe
  16. 23 Jul, 2017 1 commit
  17. 16 Jul, 2017 1 commit
    • Jason Rhinelander's avatar
      Detect c++ standard unconditionally · fad5d338
      Jason Rhinelander authored
      Currently select_cxx_standard(), which sets PYBIND11_CPP_STANDARD when
      not externally set, is only called from pybind11_add_module(), but the
      embed target setup (which runs unconditionally) makes use of
      ${PYBIND11_CPP_STANDARD}, which isn't set yet.  This commit removes the
      `select_cxx_standard` function completely and just always runs the
      standard detection code.
      
      This also tweaks the detection code to not bothering checking for the
      `-std=c++11` flag when the `-std=c++14` detection succeeded.
      fad5d338
  18. 14 Jun, 2017 1 commit
    • Jason Rhinelander's avatar
      Make check-style.sh work on stock macOS · d080f833
      Jason Rhinelander authored
      ./tools/check-style.sh fails on stock OS X currently; this fixes it:
      
      - use pipes directly rather than exec redirection (macOS's ancient
        version of bash fails with the latter)
      - macOS's ancient bash doesn't support '\e' escapes in `echo -e`;
        replace with \033 instead
      - BSD grep doesn't support GREP_COLORS, but does allow GREP_COLOR.
        Adding both doesn't hurt GNU grep: GREP_COLOR is deprecated, and won't
        be used when GREP_COLORS is set.
      - BSD grep doesn't collapse multiple /'s in the listed filename, so
        failures under `include/` would should up as
        `include//pybind11/whatever.h`.  This removes the / from the include
        directory argument.
      
      Minor other changes:
      - The CRLF detection runs with -l, so GREP_COLORS wasn't doing
        anything; removed it.
      - The trailing whitespace test would trigger on CRLFs, but the CR would
        result in messed up output.  Changed the test to just match trailing
        spaces and tabs, rather than all whitespace.
      d080f833
  19. 28 May, 2017 2 commits
  20. 09 May, 2017 1 commit
    • Jason Rhinelander's avatar
      Make PYBIND11_CPP_STANDARD work under MSVC · 77710ff0
      Jason Rhinelander authored
      Under MSVC we were ignoring PYBIND11_CPP_STANDARD and simply not
      passing any standard (which makes MSVC default to its C++14 mode).
      
      MSVC 2015u3 added the `/std:c++14` and `/std:c++latest` flags; the
      latter, under MSVC 2017, enables some C++17 features (such as
      `std::optional` and `std::variant`), so it is something we need to
      start supporting under MSVC.
      
      This makes the PYBIND11_CPP_STANDARD cmake variable work under MSVC,
      defaulting it to /std:c++14 (matching the default -std=c++14 for
      non-MSVC).
      
      It also adds a new appveyor test running under MSVC 2017 with
      /std:c++latest, which runs (and passes) the
      `std::optional`/`std::variant` tests.
      
      Also updated the documentation to clarify the c++ flags and add show
      MSVC flag examples.
      77710ff0
  21. 12 Apr, 2017 1 commit
    • Wenzel Jakob's avatar
      improve mkdoc.py determinism · 257df10f
      Wenzel Jakob authored
      When processing many files that contain top-level items with the same
      name (e.g. "operator<<"), the output was non-deterministic and depended
      on the order in which the different Clang processes finished. This
      commit adds sorting that also accounts for the filename to prevent
      random changes from run to run.
      257df10f
  22. 30 Mar, 2017 1 commit
  23. 14 Feb, 2017 3 commits
    • Dean Moldovan's avatar
      d361ea15
    • Jason Rhinelander's avatar
      Store LTO flags in PYBIND11_LTO_{CXX,LINKER}_FLAGS cache variables · c137c0a8
      Jason Rhinelander authored
      This both lets us not bother rechecking LTO flags when cmake reinvokes
      itself, and also lets the cmake invoker override to specify custom or
      no LTO flags by setting the cache variable with
      -DPYBIND11_LTO_CXX_FLAGS= when invoking cmake.
      c137c0a8
    • Jason Rhinelander's avatar
      Overhaul LTO flag detection · 1bee6e7d
      Jason Rhinelander authored
      Clang on linux currently fails to run cmake:
      
          $ CC=clang CXX=clang++ cmake ..
          ...
          -- Configuring done
          CMake Error at tools/pybind11Tools.cmake:135 (target_compile_options):
            Error evaluating generator expression:
      
              $<:-flto>
      
            Expression did not evaluate to a known generator expression
          Call Stack (most recent call first):
            tests/CMakeLists.txt:68 (pybind11_add_module)
      
      But investigating this led to various other -flto detection problems;
      this commit thus overhauls LTO flag detection:
      
      - -flto needs to be passed to the linker as well
      - Also compile with -fno-fat-lto-objects under GCC
      - Pass the equivalent flags to MSVC
      - Enable LTO flags for via generator expressions (for non-debug builds
        only), so that multi-config builds (like on Windows) still work
        properly.  This seems reasonable, however, even on single-config
        builds (and simplifies the cmake code a bit).
      - clang's lto linker plugins don't accept '-Os', so replace it with
        '-O3' when doing a MINSIZEREL build
      - Enable trying ThinLTO by default for test suite (only affects clang)
      - Match Clang$ rather than ^Clang$ because, for cmake with 3.0+
        policies in effect, the compiler ID will be AppleClang on macOS.
      1bee6e7d
  24. 13 Jan, 2017 1 commit
  25. 06 Jan, 2017 1 commit