Skip to content
This repository was archived by the owner on Jan 12, 2024. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions src/Qir/Runtime/build-qir-runtime.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,18 @@
if (-not (Build-CMakeProject $PSScriptRoot "QIR Runtime")) {
throw "At least one project failed to compile. Check the logs."
}

# Copy the results of runtime compilation and the corresponding headers to the drops folder so
# they can be included in pipeline artifacts.
$qirDropsFolder = (Join-Path $Env:DROPS_DIR QIR)
$qirDropsBin = (Join-Path $qirDropsFolder bin)
$qirDropsInclude = (Join-Path $qirDropsFolder include)
if (-not (Test-Path $qirDropsFolder)) {
New-Item -Path $qirDropsFolder -ItemType "directory"
New-Item -Path $qirDropsBin -ItemType "directory"
New-Item -Path $qirDropsInclude -ItemType "directory"
}
$qirBinaries = (Join-Path $PSScriptRoot build $Env:BUILD_CONFIGURATION bin *)
$qirIncludes = (Join-Path $PSScriptRoot public *)
Copy-Item $qirBinaries $qirDropsBin
Copy-Item $qirIncludes $qirDropsInclude