using ${PSScriptRoot}
This commit is contained in:
parent
7700a2f8d0
commit
6ce0cd1512
4 changed files with 9 additions and 12 deletions
|
@ -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}
|
||||
|
|
|
@ -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
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue