build,win: rename platform to msbuild_platform
This variable is used to select 32 or 64 bit builds when invoking MSBuild. The Visual C++ Build Tools also use the `platform` variable name, resulting in a conflict when vcvarsall.bat is called. Thus, it is necessary to rename it. Ref: https://github.com/libuv/libuv/issues/839 PR-URL: https://github.com/libuv/libuv/pull/868 Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
This commit is contained in:
parent
28d160f3de
commit
11e93aaf53
10
vcbuild.bat
10
vcbuild.bat
@ -19,7 +19,7 @@ set nobuild=
|
|||||||
set run=
|
set run=
|
||||||
set target_arch=ia32
|
set target_arch=ia32
|
||||||
set vs_toolset=x86
|
set vs_toolset=x86
|
||||||
set platform=WIN32
|
set msbuild_platform=WIN32
|
||||||
set library=static_library
|
set library=static_library
|
||||||
|
|
||||||
:next-arg
|
:next-arg
|
||||||
@ -31,9 +31,9 @@ if /i "%1"=="bench" set run=run-benchmarks.exe&goto arg-ok
|
|||||||
if /i "%1"=="clean" set target=Clean&goto arg-ok
|
if /i "%1"=="clean" set target=Clean&goto arg-ok
|
||||||
if /i "%1"=="noprojgen" set noprojgen=1&goto arg-ok
|
if /i "%1"=="noprojgen" set noprojgen=1&goto arg-ok
|
||||||
if /i "%1"=="nobuild" set nobuild=1&goto arg-ok
|
if /i "%1"=="nobuild" set nobuild=1&goto arg-ok
|
||||||
if /i "%1"=="x86" set target_arch=ia32&set platform=WIN32&set vs_toolset=x86&goto arg-ok
|
if /i "%1"=="x86" set target_arch=ia32&set msbuild_platform=WIN32&set vs_toolset=x86&goto arg-ok
|
||||||
if /i "%1"=="ia32" set target_arch=ia32&set platform=WIN32&set vs_toolset=x86&goto arg-ok
|
if /i "%1"=="ia32" set target_arch=ia32&set msbuild_platform=WIN32&set vs_toolset=x86&goto arg-ok
|
||||||
if /i "%1"=="x64" set target_arch=x64&set platform=x64&set vs_toolset=x64&goto arg-ok
|
if /i "%1"=="x64" set target_arch=x64&set msbuild_platform=x64&set vs_toolset=x64&goto arg-ok
|
||||||
if /i "%1"=="shared" set library=shared_library&goto arg-ok
|
if /i "%1"=="shared" set library=shared_library&goto arg-ok
|
||||||
if /i "%1"=="static" set library=static_library&goto arg-ok
|
if /i "%1"=="static" set library=static_library&goto arg-ok
|
||||||
:arg-ok
|
:arg-ok
|
||||||
@ -132,7 +132,7 @@ goto run
|
|||||||
|
|
||||||
@rem Build the sln with msbuild.
|
@rem Build the sln with msbuild.
|
||||||
:msbuild-found
|
:msbuild-found
|
||||||
msbuild uv.sln /t:%target% /p:Configuration=%config% /p:Platform="%platform%" /clp:NoSummary;NoItemAndPropertyList;Verbosity=minimal /nologo
|
msbuild uv.sln /t:%target% /p:Configuration=%config% /p:Platform="%msbuild_platform%" /clp:NoSummary;NoItemAndPropertyList;Verbosity=minimal /nologo
|
||||||
if errorlevel 1 exit /b 1
|
if errorlevel 1 exit /b 1
|
||||||
|
|
||||||
:run
|
:run
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user