Skip to content

Revisit workaround for pybind11 issue #76

@tkittel

Description

@tkittel

Adding a workaround for pybind bug: pybind/pybind11#5224

Opening this issue here to ensure we remember to remove the workaround again after the issue is hopefully fixed upstream.

--- a/src/_simple_build_system/data/cmake/ExtDep_pybind11.cmake
+++ b/src/_simple_build_system/data/cmake/ExtDep_pybind11.cmake
@@ -51,6 +51,10 @@ function( detect_system_pybind11
   strip_cpp_version_flags( module_cflags )
   strip_cpp_version_flags( embed_cflags )
 
+  #Temporary workaround (see https://github.com/pybind/pybind11/issues/5224):
+  list(APPEND embed_cflags "-Wno-array-bounds -Wno-stringop-overread")
+  list(APPEND module_cflags "-Wno-array-bounds -Wno-stringop-overread")

Metadata

Metadata

Assignees

No one assigned

    Labels

    dependenciesPull requests that update a dependency file

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions