Test basic DWARF generation (#931)
* Add obj generation with debug info * Add simple transform check
This commit is contained in:
3
.github/actions/define-dwarfdump-env/README.md
vendored
Normal file
3
.github/actions/define-dwarfdump-env/README.md
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
# define-dwarfdump-env
|
||||
|
||||
Defines `DWARFDUMP` path executable.
|
||||
6
.github/actions/define-dwarfdump-env/action.yml
vendored
Normal file
6
.github/actions/define-dwarfdump-env/action.yml
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
name: 'Set up a DWARFDUMP env'
|
||||
description: 'Set up a DWARFDUMP env (see tests/debug/dump.rs)'
|
||||
|
||||
runs:
|
||||
using: node12
|
||||
main: 'main.js'
|
||||
11
.github/actions/define-dwarfdump-env/main.js
vendored
Executable file
11
.github/actions/define-dwarfdump-env/main.js
vendored
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/usr/bin/env node
|
||||
|
||||
// On OSX pointing to brew's LLVM location.
|
||||
if (process.platform == 'darwin') {
|
||||
console.log("::set-env name=DWARFDUMP::/usr/local/opt/llvm/bin/llvm-dwarfdump");
|
||||
}
|
||||
|
||||
// On Linux pointing to specific version
|
||||
if (process.platform == 'linux') {
|
||||
console.log("::set-env name=DWARFDUMP::/usr/bin/llvm-dwarfdump-9");
|
||||
}
|
||||
Reference in New Issue
Block a user