Skip to content

PythonUtil 引用栈内存地址 #1357

@viennadd

Description

@viennadd

PythonUtil.cpp.in#L196 看到把局部变量的地址传递给静态变量,不知道注释里面的NOLINK是否指这个问题

  char pyHome[] = "@PYTHON_INSTALL_DIR@"; // NOLINT
  if (strlen(pyHome)) {
    Py_SetPythonHome(pyHome);
  }

加上static 是否可行: static char pyHome[] = "@PYTHON_INSTALL_DIR@"; // NOLINT

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions