mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
14 lines
530 B
PowerShell
14 lines
530 B
PowerShell
cd "$PSScriptRoot\.."
|
|
|
|
if ("$Env:FORCE_RELEASE") {
|
|
New-Item prerelease.txt -type file
|
|
Write-Host "Building release version."
|
|
}
|
|
|
|
mkdir build
|
|
cd build
|
|
$boost_dir=(Resolve-Path $PSScriptRoot\..\deps\boost\lib\cmake\Boost-*)
|
|
..\deps\cmake\bin\cmake -G "Visual Studio 16 2019" -DBoost_DIR="$boost_dir\" -DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreaded -DCMAKE_INSTALL_PREFIX="$PSScriptRoot\..\upload" ..
|
|
msbuild solidity.sln /p:Configuration=Release /m:5 /v:minimal
|
|
..\deps\cmake\bin\cmake --build . -j 5 --target install --config Release
|