Support python + static libstdc++
Этот коммит содержится в:
Jonathan R. Madsen authored and GitHub committed 2022-08-28 03:56:13 -05:00
1 родитель 0dd8f52292
Коммит a1dcd1bc4b
11 files changed
+127 -57

No files matched your search

+6
Просмотреть файл
@@ -35,6 +35,12 @@ This submodule imports the timemory Python function profiler
"""
try:
import os
os.environ["OMNITRACE_PATH"] = os.path.abspath(
os.path.join(os.path.dirname(__file__), "../../..")
)
from .libpyomnitrace import coverage
from . import user
from .profiler import Profiler, FakeProfiler
+1 -1
Просмотреть файл
@@ -93,7 +93,7 @@ class Region:
_count = Region._counter
self._active = False
if _count != self._count:
raise LogicError(
raise RuntimeError(
f"{self._label} was not popped in the order it was pushed. Current stack number: {_count}, expected stack number: {self._count}"
)
_libuser.pop_region(self._label)