@@ -15,7 +15,7 @@ const arch = process.env['BUILD_ARCH'] || _arch();
15
15
const abi = getAbi ( versions . node , 'node' ) ;
16
16
const identifier = [ platform , arch , stdlib , abi ] . filter ( c => c !== undefined && c !== null ) . join ( '-' ) ;
17
17
18
- const built_from_source_path = resolve ( __dirname , `./sentry_cpu_profiler-${ identifier } ` ) ;
18
+ const built_from_source_path = resolve ( __dirname , '..' , `./sentry_cpu_profiler-${ identifier } ` ) ;
19
19
20
20
/**
21
21
* Imports cpp bindings based on the current platform and architecture.
@@ -39,39 +39,39 @@ export function importCppBindingsModule(): PrivateV8CpuProfilerBindings {
39
39
if ( platform === 'darwin' ) {
40
40
if ( arch === 'x64' ) {
41
41
if ( abi === '93' ) {
42
- return require ( './sentry_cpu_profiler-darwin-x64-93.node' ) ;
42
+ return require ( '.. /sentry_cpu_profiler-darwin-x64-93.node' ) ;
43
43
}
44
44
if ( abi === '108' ) {
45
- return require ( './sentry_cpu_profiler-darwin-x64-108.node' ) ;
45
+ return require ( '.. /sentry_cpu_profiler-darwin-x64-108.node' ) ;
46
46
}
47
47
if ( abi === '115' ) {
48
- return require ( './sentry_cpu_profiler-darwin-x64-115.node' ) ;
48
+ return require ( '.. /sentry_cpu_profiler-darwin-x64-115.node' ) ;
49
49
}
50
50
}
51
51
52
52
if ( arch === 'arm64' ) {
53
53
if ( abi === '93' ) {
54
- return require ( './sentry_cpu_profiler-darwin-arm64-93.node' ) ;
54
+ return require ( '.. /sentry_cpu_profiler-darwin-arm64-93.node' ) ;
55
55
}
56
56
if ( abi === '108' ) {
57
- return require ( './sentry_cpu_profiler-darwin-arm64-108.node' ) ;
57
+ return require ( '.. /sentry_cpu_profiler-darwin-arm64-108.node' ) ;
58
58
}
59
59
if ( abi === '115' ) {
60
- return require ( './sentry_cpu_profiler-darwin-arm64-115.node' ) ;
60
+ return require ( '.. /sentry_cpu_profiler-darwin-arm64-115.node' ) ;
61
61
}
62
62
}
63
63
}
64
64
65
65
if ( platform === 'win32' ) {
66
66
if ( arch === 'x64' ) {
67
67
if ( abi === '93' ) {
68
- return require ( './sentry_cpu_profiler-win32-x64-93.node' ) ;
68
+ return require ( '.. /sentry_cpu_profiler-win32-x64-93.node' ) ;
69
69
}
70
70
if ( abi === '108' ) {
71
- return require ( './sentry_cpu_profiler-win32-x64-108.node' ) ;
71
+ return require ( '.. /sentry_cpu_profiler-win32-x64-108.node' ) ;
72
72
}
73
73
if ( abi === '115' ) {
74
- return require ( './sentry_cpu_profiler-win32-x64-115.node' ) ;
74
+ return require ( '.. /sentry_cpu_profiler-win32-x64-115.node' ) ;
75
75
}
76
76
}
77
77
}
@@ -80,48 +80,48 @@ export function importCppBindingsModule(): PrivateV8CpuProfilerBindings {
80
80
if ( arch === 'x64' ) {
81
81
if ( stdlib === 'musl' ) {
82
82
if ( abi === '93' ) {
83
- return require ( './sentry_cpu_profiler-linux-x64-musl-93.node' ) ;
83
+ return require ( '.. /sentry_cpu_profiler-linux-x64-musl-93.node' ) ;
84
84
}
85
85
if ( abi === '108' ) {
86
- return require ( './sentry_cpu_profiler-linux-x64-musl-108.node' ) ;
86
+ return require ( '.. /sentry_cpu_profiler-linux-x64-musl-108.node' ) ;
87
87
}
88
88
if ( abi === '115' ) {
89
- return require ( './sentry_cpu_profiler-linux-x64-musl-115.node' ) ;
89
+ return require ( '.. /sentry_cpu_profiler-linux-x64-musl-115.node' ) ;
90
90
}
91
91
}
92
92
if ( stdlib === 'glibc' ) {
93
93
if ( abi === '93' ) {
94
- return require ( './sentry_cpu_profiler-linux-x64-glibc-93.node' ) ;
94
+ return require ( '.. /sentry_cpu_profiler-linux-x64-glibc-93.node' ) ;
95
95
}
96
96
if ( abi === '108' ) {
97
- return require ( './sentry_cpu_profiler-linux-x64-glibc-108.node' ) ;
97
+ return require ( '.. /sentry_cpu_profiler-linux-x64-glibc-108.node' ) ;
98
98
}
99
99
if ( abi === '115' ) {
100
- return require ( './sentry_cpu_profiler-linux-x64-glibc-115.node' ) ;
100
+ return require ( '.. /sentry_cpu_profiler-linux-x64-glibc-115.node' ) ;
101
101
}
102
102
}
103
103
}
104
104
if ( arch === 'arm64' ) {
105
105
if ( stdlib === 'musl' ) {
106
106
if ( abi === '93' ) {
107
- return require ( './sentry_cpu_profiler-linux-arm64-musl-93.node' ) ;
107
+ return require ( '.. /sentry_cpu_profiler-linux-arm64-musl-93.node' ) ;
108
108
}
109
109
if ( abi === '108' ) {
110
- return require ( './sentry_cpu_profiler-linux-arm64-musl-108.node' ) ;
110
+ return require ( '.. /sentry_cpu_profiler-linux-arm64-musl-108.node' ) ;
111
111
}
112
112
if ( abi === '115' ) {
113
- return require ( './sentry_cpu_profiler-linux-arm64-musl-115.node' ) ;
113
+ return require ( '.. /sentry_cpu_profiler-linux-arm64-musl-115.node' ) ;
114
114
}
115
115
}
116
116
if ( stdlib === 'glibc' ) {
117
117
if ( abi === '93' ) {
118
- return require ( './sentry_cpu_profiler-linux-arm64-glibc-93.node' ) ;
118
+ return require ( '.. /sentry_cpu_profiler-linux-arm64-glibc-93.node' ) ;
119
119
}
120
120
if ( abi === '108' ) {
121
- return require ( './sentry_cpu_profiler-linux-arm64-glibc-108.node' ) ;
121
+ return require ( '.. /sentry_cpu_profiler-linux-arm64-glibc-108.node' ) ;
122
122
}
123
123
if ( abi === '115' ) {
124
- return require ( './sentry_cpu_profiler-linux-arm64-glibc-115.node' ) ;
124
+ return require ( '.. /sentry_cpu_profiler-linux-arm64-glibc-115.node' ) ;
125
125
}
126
126
}
127
127
}
0 commit comments