Skip to content

Commit

Permalink
Fix LLVM on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
syrusakbary committed Sep 1, 2019
1 parent 5b55490 commit 4c2e5ed
Showing 1 changed file with 21 additions and 13 deletions.
34 changes: 21 additions & 13 deletions .azure/install-llvm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,27 @@ steps:
displayName: "Install LLVM (Linux)"
condition: eq(variables['Agent.OS'], 'Linux')
- bash: |
set -ex
if [ -x "`command -v llvm-config`" ]; then
echo `command -v cmake` `llvm-config --version` installed
else
mkdir C:\projects\deps
cd C:\projects\deps
curl -OL https://github.com/wasmerio/windows-llvm-build/releases/download/v8.0.0/llvm-8.0.0-install.zip
7z x llvm-8.0.0-install.zip
echo "##vso[task.prependpath]/c/projects/deps/llvm-8.0.0-install/bin"
echo "##vso[task.setvariable variable=LLVM_SYS_80_PREFIX]C:\\projects\\deps\\llvm-8.0.0-install"
fi
displayName: "Install LLVM (Windows)"
# - bash: |
# set -ex
# if [ -x "`command -v llvm-config`" ]; then
# echo `command -v cmake` `llvm-config --version` installed
# else
# mkdir C:\projects\deps
# cd C:\projects\deps
# curl -OL https://github.com/wasmerio/windows-llvm-build/releases/download/v8.0.0/llvm-8.0.0-install.zip
# 7z x llvm-8.0.0-install.zip
# echo "##vso[task.prependpath]/c/projects/deps/llvm-8.0.0-install/bin"
# echo "##vso[task.setvariable variable=LLVM_SYS_80_PREFIX]C:\\projects\\deps\\llvm-8.0.0-install"
# fi
# displayName: "Install LLVM (Windows)"
# condition: eq(variables['Agent.OS'], 'Windows_NT')

- powershell: |
Invoke-WebRequest https://github.com/wasmerio/windows-llvm-build/releases/download/v8.0.0/llvm-8.0.0-install.zip
7z x llvm-8.0.0-install.zip
Write-Host "##vso[task.prependpath]$pwd/llvm-8.0.0-install/bin"
Write-Host "##vso[task.setvariable variable=LLVM_SYS_80_PREFIX;]$pwd/llvm-8.0.0-install/"
displayName: Install LLVM (Windows)
condition: eq(variables['Agent.OS'], 'Windows_NT')
- bash: |
Expand Down

0 comments on commit 4c2e5ed

Please sign in to comment.