File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 1
- 1201
2
- Changed: lushnikov @chromium.org Tue 03 Nov 2020 02:16:18 PM PST
1
+ 1202
2
+ Changed: yurys @chromium.org Thu Nov 5 20:30:30 GMTST 2020
Original file line number Diff line number Diff line change @@ -26,13 +26,22 @@ elif [[ "$(uname)" == "Linux" ]]; then
26
26
echo " -- building on Linux"
27
27
echo " ac_add_options --disable-av1" > .mozconfig
28
28
elif [[ " $( uname) " == MINGW* ]]; then
29
+ TMPFILE=$( mktemp)
29
30
if [[ $1 == " --win64" ]]; then
30
31
echo " -- building win64 build on MINGW"
31
32
echo " ac_add_options --target=x86_64-pc-mingw32" > .mozconfig
32
33
echo " ac_add_options --host=x86_64-pc-mingw32" >> .mozconfig
34
+ " $PROGRAMFILES \Microsoft Visual Studio\Installer\vswhere.exe" -latest -find ' **\Redist\MSVC\*\x64\**\vcruntime140.dll' > $TMPFILE
33
35
else
34
36
echo " -- building win32 build on MINGW"
37
+ " $PROGRAMFILES \Microsoft Visual Studio\Installer\vswhere.exe" -latest -find ' **\Redist\MSVC\*\x86\**\vcruntime140.dll' > $TMPFILE
35
38
fi
39
+ WIN32_REDIST_DIR=$( dirname " $( cat $TMPFILE ) " )
40
+ if ! [[ -d $WIN32_REDIST_DIR ]]; then
41
+ echo " Error: cannot find MS VS C++ redistributable $WIN32_REDIST_DIR "
42
+ exit 1;
43
+ fi
44
+ echo " export WIN32_REDIST_DIR=\" $WIN32_REDIST_DIR \" " >> .mozconfig
36
45
else
37
46
echo " ERROR: cannot upload on this platform!" 1>&2
38
47
exit 1;
You can’t perform that action at this time.
0 commit comments