Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re-enable llvm build in appveyor #259

Closed
wants to merge 7 commits into from
Closed
Show file tree
Hide file tree
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
18 changes: 11 additions & 7 deletions .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,23 @@ cache:

install:
# # Install LLVM
# - mkdir C:\projects\deps
# - cd C:\projects\deps
- mkdir C:\projects\deps
- cd C:\projects\deps
- appveyor DownloadFile https://github.com/bjfish/build-llvm-for-appveyor/releases/download/0.3/llvm-7.0.1-install.zip -FileName llvm-7.0.1-install.zip
# - appveyor DownloadFile http://prereleases.llvm.org/win-snapshots/LLVM-7.0.0-r336178-win64.exe -FileName llvm.exe
- 7z x llvm-7.0.1-install.zip
# - 7z x llvm.exe -oC:\projects\deps\llvm
# # - set "PATH=%PATH%;C:\projects\deps\llvm\bin"
# - set "LLD_LINK=C:\projects\deps\llvm\bin\lld-link.exe"
# - set "LLVM_SYS_70_PREFIX=C:\projects\deps\llvm"
# - cd "%APPVEYOR_BUILD_FOLDER%"
- C:\projects\deps\llvm-7.0.1-install\bin\llvm-config.exe --version
- set "LLVM_SYS_70_PREFIX=C:\projects\deps\llvm-7.0.1-install"
- cd "%APPVEYOR_BUILD_FOLDER%"

# Install Rust
# uncomment these lines if the cache is cleared, or if we must re-install rust for some reason
# - appveyor DownloadFile https://win.rustup.rs/ -FileName rustup-init.exe
# - rustup-init.exe -yv --default-host %target%
- set PATH=%PATH%;C:\\Libraries\\llvm-5.0.0\\bin;%USERPROFILE%\.cargo\bin
- appveyor DownloadFile https://win.rustup.rs/ -FileName rustup-init.exe
- rustup-init.exe -yv --default-host %target%
- set PATH=%PATH%;%USERPROFILE%\.cargo\bin
- rustup default stable-%target%
- rustup update
- rustc -vV
Expand All @@ -51,6 +54,7 @@ build_script:

test_script:
- cargo test --manifest-path lib/spectests/Cargo.toml --features clif
- cargo test --manifest-path lib/spectests/Cargo.toml --features llvm

before_deploy:
- cd ./src/installer
Expand Down
3 changes: 1 addition & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,9 @@ wasmer-clif-backend = { path = "lib/clif-backend" }
wasmer-runtime = { path = "lib/runtime" }
wasmer-runtime-core = { path = "lib/runtime-core" }
wasmer-emscripten = { path = "lib/emscripten" }

[target.'cfg(not(windows))'.dependencies]
wasmer-llvm-backend = { path = "lib/llvm-backend", optional = true }


[workspace]
members = ["lib/clif-backend", "lib/runtime", "lib/runtime-core", "lib/emscripten", "lib/spectests", "lib/win-exception-handler", "lib/runtime-c-api", "lib/llvm-backend"]

Expand Down
2 changes: 0 additions & 2 deletions lib/emscripten/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ rand = "0.6"
[dev-dependencies]
wasmer-clif-backend = { path = "../clif-backend", version = "0.2.0" }
wabt = "0.7.2"

[target.'cfg(not(windows))'.dev-dependencies]
wasmer-llvm-backend = { path = "../llvm-backend", version = "0.1.0" }

[build-dependencies]
Expand Down
2 changes: 1 addition & 1 deletion lib/runtime/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ tempfile = "3.0.7"
criterion = "0.2"
wabt = "0.7.4"

[target.'cfg(not(windows))'.dependencies.wasmer-llvm-backend]
[dependencies.wasmer-llvm-backend]
path = "../llvm-backend"
optional = true

Expand Down
3 changes: 1 addition & 2 deletions lib/spectests/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ build = "build/mod.rs"

[dependencies]
wasmer-runtime-core = { path = "../runtime-core", version = "0.2.0" }
wasmer-llvm-backend = { path = "../llvm-backend", version = "0.1.0", optional = true }

[build-dependencies]
wabt = "0.7.2"
Expand All @@ -18,8 +19,6 @@ wabt = "0.7.2"
wasmer-clif-backend = { path = "../clif-backend", version = "0.2.0" }
wabt = "0.7.2"

[target.'cfg(not(windows))'.dependencies]
wasmer-llvm-backend = { path = "../llvm-backend", version = "0.1.0", optional = true }

[features]
default = ["fast-tests"]
Expand Down