aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--.github/actions/check-runtime-library/action.yml18
1 files changed, 17 insertions, 1 deletions
diff --git a/.github/actions/check-runtime-library/action.yml b/.github/actions/check-runtime-library/action.yml
index b4db3b5..32d2246 100644
--- a/.github/actions/check-runtime-library/action.yml
+++ b/.github/actions/check-runtime-library/action.yml
@@ -62,6 +62,22 @@ runs:
}
}
+ function Get-Objdump {
+ $objdump = Get-Command 'objdump' -ErrorAction SilentlyContinue
+ if ($objdump) {
+ return $objdump.Path
+ }
+ $objdump = 'C:\ProgramData\chocolatey\bin\objdump.exe'
+ if (Test-Path $objdump -Type Leaf) {
+ return $objdump
+ }
+ $objdump = 'C:\mingw64\bin\objdump.exe'
+ if (Test-Path $objdump -Type Leaf) {
+ return $objdump
+ }
+ return 'objdump'
+ }
+
function Get-LinkedLibraries {
param(
[Parameter(Mandatory=$true)]
@@ -70,7 +86,7 @@ runs:
$objdump = 'objdump'
if ($env:CI_HOST_WINDOWS) {
- $objdump = 'C:\ProgramData\chocolatey\bin\objdump.exe'
+ $objdump = Get-Objdump
}
if ($env:CI_TARGET_PE) {