2024-10-27 11:18:21 +02:00
|
|
|
#!/usr/bin/env bash
|
2024-09-14 13:03:44 +02:00
|
|
|
|
2024-10-27 12:23:47 +02:00
|
|
|
MSVC_INSTALL_PATH=$(vswhere -latest -property installationPath)
|
|
|
|
echo "MSVC_INSTALL_PATH = $MSVC_INSTALL_PATH"
|
|
|
|
echo "Installed toolset versions:"
|
2024-10-27 19:45:12 +02:00
|
|
|
ls -vr "$MSVC_INSTALL_PATH/VC/Tools/MSVC"
|
2024-10-27 12:23:47 +02:00
|
|
|
|
2024-10-27 19:45:12 +02:00
|
|
|
TOOLS_DIR=$(ls -vr "$MSVC_INSTALL_PATH/VC/Tools/MSVC/" | head -1)
|
|
|
|
DUMPBIN_PATH="$MSVC_INSTALL_PATH/VC/Tools/MSVC/$TOOLS_DIR/bin/Hostx64/x64/dumpbin.exe"
|
2024-10-27 12:23:47 +02:00
|
|
|
|
2024-10-27 19:45:12 +02:00
|
|
|
# This command should work as well, but for some reason it is *extremely* slow on the Github CI (~7 minutes)
|
2024-10-27 12:23:47 +02:00
|
|
|
#DUMPBIN_PATH=$(vswhere -latest -find **/dumpbin.exe | head -n 1)
|
|
|
|
|
|
|
|
echo "TOOLS_DIR = $TOOLS_DIR"
|
|
|
|
echo "DUMPBIN_PATH = $DUMPBIN_PATH"
|
|
|
|
|
|
|
|
dirname "$DUMPBIN_PATH" > "$GITHUB_PATH"
|