Static libstdcxx and python (#139)

Support python + static libstdc++

[ROCm/rocprofiler-systems commit: a1dcd1bc4b]
Esse commit está contido em:
Jonathan R. Madsen
2022-08-28 03:56:13 -05:00
commit de GitHub
commit f642813ad1
11 arquivos alterados com 127 adições e 57 exclusões
@@ -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
@@ -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)