1
0
Fork 0

using ${PSScriptRoot}

This commit is contained in:
Christian Kühnel 2019-11-27 15:45:11 +00:00
parent 7700a2f8d0
commit 6ce0cd1512
4 changed files with 9 additions and 12 deletions

View file

@ -19,6 +19,6 @@ param(
Measure-Command { git clone --depth 1 https://github.com/llvm/llvm-project $WORKDIR }
Set-Location $WORKDIR
Measure-Command {& $PSScriptRoot\run_cmake.bat}
Measure-Command {& $PSScriptRoot\run_ninja.bat all}
Measure-Command {& $PSScriptRoot\run_ninja.bat check-all}
Measure-Command {& $PSScriptRoot\run_cmake.ps1}
Measure-Command {& $PSScriptRoot\run_ninja.ps1 all}
Measure-Command {& $PSScriptRoot\run_ninja.ps1 check-all}

View file

@ -12,16 +12,15 @@
# See the License for the specific language governing permissions and
# limitations under the License.
New-Variable -Name SCRIPT_DIR -Value (Get-Item $PSScriptRoot).FullName
. ${SCRIPT_DIR}\common.ps1
. ${PSScriptRoot}\common.ps1
Write-Output "--- CMake"
& "${SCRIPT_DIR}\run_cmake.ps1"
& "${PSScriptRoot}\run_cmake.ps1"
Write-Output "--- ninja all"
& "${SCRIPT_DIR}\run_ninja.ps1" all
& "${PSScriptRoot}\run_ninja.ps1" all
Write-Output "--- ninja check-all"
& "${SCRIPT_DIR}\run_ninja.ps1" check-all
& "${PSScriptRoot}\run_ninja.ps1" check-all
Write-Output --- done

View file

@ -12,8 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
New-Variable -Name SCRIPT_DIR -Value (Get-Item $PSScriptRoot).FullName
. ${SCRIPT_DIR}\common.ps1
. ${PSScriptRoot}\common.ps1
New-Item -ItemType Directory -Force -Path build | Out-Null
Push-Location build

View file

@ -16,8 +16,7 @@ param(
[Parameter(Mandatory=$true)][string]$target
)
New-Variable -Name SCRIPT_DIR -Value (Get-Item $PSScriptRoot).FullName
. ${SCRIPT_DIR}\common.ps1
. ${PSScriptRoot}\common.ps1
Push-Location build