Skip to content

Commit 03fefd3

Browse files
committed
fix: support macos - add new target and exe path
1 parent 06e1601 commit 03fefd3

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

build.js

+4
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ const targets = ['src/processor/minidump_stackwalk', 'src/processor/minidump_dum
1818
if (process.platform === 'linux') {
1919
targets.push('src/tools/linux/dump_syms/dump_syms')
2020
}
21+
if (process.platform === 'darwin') {
22+
targets.push('src/tools/mac/dump_syms/dump_syms_tools')
23+
}
24+
2125
spawnSync('make', ['-C', buildDir, '-j', require('os').cpus().length, ...targets], {
2226
stdio: 'inherit'
2327
})

lib/minidump.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const commands = {
99
minidump_dump: path.resolve(__dirname, '..', 'build', 'src', 'processor', 'minidump_dump') + exe,
1010
dump_syms: (() => {
1111
if (process.platform === 'darwin') {
12-
return path.resolve(__dirname, '..', 'build', 'src', 'tools', 'mac', 'dump_syms', 'dump_syms_mac')
12+
return path.resolve(__dirname, '..', 'build', 'src', 'tools', 'mac', 'dump_syms', 'dump_syms')
1313
} else if (process.platform === 'linux') {
1414
return path.resolve(__dirname, '..', 'build', 'src', 'tools', 'linux', 'dump_syms', 'dump_syms')
1515
}

0 commit comments

Comments
 (0)