mirror of
https://github.com/pezkuwichain/revive.git
synced 2026-06-12 21:01:01 +00:00
Fix CI for wasm path
This commit is contained in:
@@ -32,7 +32,7 @@ jobs:
|
|||||||
- name: Install LLVM Dependencies
|
- name: Install LLVM Dependencies
|
||||||
if: steps.cache-llvm.outputs.cache-hit != 'true'
|
if: steps.cache-llvm.outputs.cache-hit != 'true'
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update && sudo apt-get install -y cmake ninja-build libncurses5 libtinfo-dev libtinfo5
|
sudo apt-get update && sudo apt-get install -y cmake ninja-build libncurses5
|
||||||
# Install Emscripten
|
# Install Emscripten
|
||||||
git clone https://github.com/emscripten-core/emsdk.git
|
git clone https://github.com/emscripten-core/emsdk.git
|
||||||
cd emsdk
|
cd emsdk
|
||||||
|
|||||||
@@ -37,10 +37,13 @@ Install [emscripten](https://emscripten.org/docs/getting_started/downloads.html)
|
|||||||
To build resolc.js execute:
|
To build resolc.js execute:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
bash build-llvm.sh
|
||||||
|
export PATH=${PWD}/llvm18.0/bin:$PATH
|
||||||
export EMSDK_ROOT=<PATH_TO_EMSCRIPTEN_SDK>
|
export EMSDK_ROOT=<PATH_TO_EMSCRIPTEN_SDK>
|
||||||
bash emscripten-build-llvm.sh
|
bash emscripten-build-llvm.sh
|
||||||
source $EMSDK_ROOT/emsdk_env.sh
|
source $EMSDK_ROOT/emsdk_env.sh
|
||||||
export LLVM_LINK_PREFIX=${PWD}/llvm18.0-emscripten
|
export LLVM_LINK_PREFIX=${PWD}/llvm18.0-emscripten
|
||||||
|
export PATH=$PATH:$PWD/llvm18.0-emscripten/bin/
|
||||||
make install-wasm
|
make install-wasm
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -86,8 +86,8 @@ fn set_rustc_link_flags(llvm_config_path: &Path) {
|
|||||||
println!("cargo:rustc-link-lib=static={lib}");
|
println!("cargo:rustc-link-lib=static={lib}");
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(target_os = "linux")]
|
let target_os = std::env::var("CARGO_CFG_TARGET_OS").unwrap_or_default();
|
||||||
{
|
if target_os == "linux" {
|
||||||
println!("cargo:rustc-link-lib=dylib=stdc++");
|
println!("cargo:rustc-link-lib=dylib=stdc++");
|
||||||
println!("cargo:rustc-link-lib=tinfo");
|
println!("cargo:rustc-link-lib=tinfo");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user