mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-01 16:49:20 +03:00
devops: be compatible with multiple MSVS installations (#16121)
This commit is contained in:
parent
7a18def019
commit
99cc3869d2
@ -75,7 +75,7 @@ elif is_win; then
|
||||
echo "ac_add_options --target=x86_64-pc-mingw32" >> .mozconfig
|
||||
echo "ac_add_options --host=x86_64-pc-mingw32" >> .mozconfig
|
||||
DLL_FILE=$("C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe" -latest -find '**\Redist\MSVC\*\x64\**\vcruntime140.dll')
|
||||
WIN32_REDIST_DIR=$(dirname "$DLL_FILE")
|
||||
WIN32_REDIST_DIR=$(dirname "$DLL_FILE" | tail -n 1)
|
||||
if ! [[ -d $WIN32_REDIST_DIR ]]; then
|
||||
echo "ERROR: cannot find MS VS C++ redistributable $WIN32_REDIST_DIR"
|
||||
exit 1;
|
||||
|
@ -68,7 +68,7 @@ elif is_win; then
|
||||
echo "ac_add_options --target=x86_64-pc-mingw32" >> .mozconfig
|
||||
echo "ac_add_options --host=x86_64-pc-mingw32" >> .mozconfig
|
||||
DLL_FILE=$("C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe" -latest -find '**\Redist\MSVC\*\x64\**\vcruntime140.dll')
|
||||
WIN32_REDIST_DIR=$(dirname "$DLL_FILE")
|
||||
WIN32_REDIST_DIR=$(dirname "$DLL_FILE" | tail -n 1)
|
||||
if ! [[ -d $WIN32_REDIST_DIR ]]; then
|
||||
echo "ERROR: cannot find MS VS C++ redistributable $WIN32_REDIST_DIR"
|
||||
exit 1;
|
||||
|
@ -35,7 +35,7 @@ function selectXcodeVersionOrDie() {
|
||||
# see https://docs.microsoft.com/en-us/visualstudio/install/tools-for-managing-visual-studio-instances?view=vs-2019
|
||||
function printMSVCRedistDir() {
|
||||
local dll_file=$("C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe" -latest -find '**\Redist\MSVC\*\x64\**\vcruntime140.dll')
|
||||
local redist_dir=$(dirname "$dll_file")
|
||||
local redist_dir=$(dirname "$dll_file" | tail -n 1)
|
||||
if ! [[ -d $redist_dir ]]; then
|
||||
echo "ERROR: cannot find MS VS C++ redistributable $redist_dir"
|
||||
exit 1;
|
||||
|
Loading…
Reference in New Issue
Block a user