Skip to content

Commit 71cfd0e

Browse files
committed
fix: instrument-hooks build
1 parent e91d9aa commit 71cfd0e

File tree

4 files changed

+11
-7
lines changed

4 files changed

+11
-7
lines changed

.gitmodules

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[submodule "tests/benchmarks/TheAlgorithms"]
22
path = tests/benchmarks/TheAlgorithms
33
url = [email protected]:TheAlgorithms/Python.git
4-
[submodule "src/pytest_codspeed/instruments/hooks"]
5-
path = src/pytest_codspeed/instruments/hooks
4+
[submodule "src/pytest_codspeed/instruments/hooks/instrument-hooks"]
5+
path = src/pytest_codspeed/instruments/hooks/instrument-hooks
66
url = https://github.com/CodSpeedHQ/instrument-hooks

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@
5050
setup(
5151
package_data={
5252
"pytest_codspeed": [
53-
"instruments/valgrind/_wrapper/*.h",
54-
"instruments/valgrind/_wrapper/*.c",
53+
"instruments/hooks/instrument-hooks/dist/*.h",
54+
"instruments/hooks/instrument-hooks/dist/*.c",
5555
]
5656
},
5757
ext_modules=(

src/pytest_codspeed/instruments/hooks/build.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,14 @@
1313

1414
ffibuilder.set_source(
1515
"pytest_codspeed.core",
16-
"",
16+
"""
17+
#include "core.h"
18+
#include <quadmath.h>
19+
""",
1720
libraries=["m", "quadmath"],
1821
sources=[
19-
"src/pytest_codspeed/instruments/core/instrument-hooks/dist/core.c",
20-
"src/pytest_codspeed/instruments/core/instrument-hooks/dist/wrapper.c",
22+
"src/pytest_codspeed/instruments/hooks/instrument-hooks/dist/core.c",
23+
"src/pytest_codspeed/instruments/hooks/instrument-hooks/dist/wrapper.c",
2124
],
2225
include_dirs=[str(dist_dir)],
2326
extra_compile_args=["-lm", "-lcs50"],

0 commit comments

Comments
 (0)