Fix CI for wasm path

This commit is contained in:
Sebastian Miasojed
2024-11-13 15:34:41 +01:00
parent 6d16790f83
commit 14991f40ac
3 changed files with 6 additions and 3 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ jobs:
- name: Install LLVM Dependencies
if: steps.cache-llvm.outputs.cache-hit != 'true'
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
git clone https://github.com/emscripten-core/emsdk.git
cd emsdk
+3
View File
@@ -37,10 +37,13 @@ Install [emscripten](https://emscripten.org/docs/getting_started/downloads.html)
To build resolc.js execute:
```bash
bash build-llvm.sh
export PATH=${PWD}/llvm18.0/bin:$PATH
export EMSDK_ROOT=<PATH_TO_EMSCRIPTEN_SDK>
bash emscripten-build-llvm.sh
source $EMSDK_ROOT/emsdk_env.sh
export LLVM_LINK_PREFIX=${PWD}/llvm18.0-emscripten
export PATH=$PATH:$PWD/llvm18.0-emscripten/bin/
make install-wasm
```
+2 -2
View File
@@ -86,8 +86,8 @@ fn set_rustc_link_flags(llvm_config_path: &Path) {
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=tinfo");
}