Skip to content

Commit 7e0c880

Browse files
committed
Fix write .target command for old powershell.
This closes #12
1 parent 2c1e3d5 commit 7e0c880

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/install.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ function Install ($arch) {
146146
}
147147
Copy-Item $bin "$targetPath\bin"
148148
Copy-Item $dll "$targetPath\bin"
149-
Set-Content -Path "$targetPath\bin\.target" "$LLVMDirectory\bin\clang.exe" -Encoding UTF8 -NoNewline
149+
[IO.File]::WriteAllText("$targetPath\bin\.target","$LLVMDirectory\bin\clang.exe");
150150

151151
if ($ClangClToolsetName -ne "") {
152152
$targetPath = "$platformDir\$ClangClToolsetName"

0 commit comments

Comments
 (0)