@@ -15,7 +15,7 @@ const arch = process.env['BUILD_ARCH'] || _arch();
1515const abi = getAbi ( versions . node , 'node' ) ;
1616const identifier = [ platform , arch , stdlib , abi ] . filter ( c => c !== undefined && c !== null ) . join ( '-' ) ;
1717
18- const built_from_source_path = resolve ( __dirname , `./sentry_cpu_profiler-${ identifier } ` ) ;
18+ const built_from_source_path = resolve ( __dirname , '..' , `./sentry_cpu_profiler-${ identifier } ` ) ;
1919
2020/**
2121 * Imports cpp bindings based on the current platform and architecture.
@@ -39,39 +39,39 @@ export function importCppBindingsModule(): PrivateV8CpuProfilerBindings {
3939 if ( platform === 'darwin' ) {
4040 if ( arch === 'x64' ) {
4141 if ( abi === '93' ) {
42- return require ( './sentry_cpu_profiler-darwin-x64-93.node' ) ;
42+ return require ( '.. /sentry_cpu_profiler-darwin-x64-93.node' ) ;
4343 }
4444 if ( abi === '108' ) {
45- return require ( './sentry_cpu_profiler-darwin-x64-108.node' ) ;
45+ return require ( '.. /sentry_cpu_profiler-darwin-x64-108.node' ) ;
4646 }
4747 if ( abi === '115' ) {
48- return require ( './sentry_cpu_profiler-darwin-x64-115.node' ) ;
48+ return require ( '.. /sentry_cpu_profiler-darwin-x64-115.node' ) ;
4949 }
5050 }
5151
5252 if ( arch === 'arm64' ) {
5353 if ( abi === '93' ) {
54- return require ( './sentry_cpu_profiler-darwin-arm64-93.node' ) ;
54+ return require ( '.. /sentry_cpu_profiler-darwin-arm64-93.node' ) ;
5555 }
5656 if ( abi === '108' ) {
57- return require ( './sentry_cpu_profiler-darwin-arm64-108.node' ) ;
57+ return require ( '.. /sentry_cpu_profiler-darwin-arm64-108.node' ) ;
5858 }
5959 if ( abi === '115' ) {
60- return require ( './sentry_cpu_profiler-darwin-arm64-115.node' ) ;
60+ return require ( '.. /sentry_cpu_profiler-darwin-arm64-115.node' ) ;
6161 }
6262 }
6363 }
6464
6565 if ( platform === 'win32' ) {
6666 if ( arch === 'x64' ) {
6767 if ( abi === '93' ) {
68- return require ( './sentry_cpu_profiler-win32-x64-93.node' ) ;
68+ return require ( '.. /sentry_cpu_profiler-win32-x64-93.node' ) ;
6969 }
7070 if ( abi === '108' ) {
71- return require ( './sentry_cpu_profiler-win32-x64-108.node' ) ;
71+ return require ( '.. /sentry_cpu_profiler-win32-x64-108.node' ) ;
7272 }
7373 if ( abi === '115' ) {
74- return require ( './sentry_cpu_profiler-win32-x64-115.node' ) ;
74+ return require ( '.. /sentry_cpu_profiler-win32-x64-115.node' ) ;
7575 }
7676 }
7777 }
@@ -80,48 +80,48 @@ export function importCppBindingsModule(): PrivateV8CpuProfilerBindings {
8080 if ( arch === 'x64' ) {
8181 if ( stdlib === 'musl' ) {
8282 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' ) ;
8484 }
8585 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' ) ;
8787 }
8888 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' ) ;
9090 }
9191 }
9292 if ( stdlib === 'glibc' ) {
9393 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' ) ;
9595 }
9696 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' ) ;
9898 }
9999 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' ) ;
101101 }
102102 }
103103 }
104104 if ( arch === 'arm64' ) {
105105 if ( stdlib === 'musl' ) {
106106 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' ) ;
108108 }
109109 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' ) ;
111111 }
112112 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' ) ;
114114 }
115115 }
116116 if ( stdlib === 'glibc' ) {
117117 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' ) ;
119119 }
120120 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' ) ;
122122 }
123123 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' ) ;
125125 }
126126 }
127127 }
0 commit comments