Skip to content

Commit a5d67ad

Browse files
jkwak-workcsyonghe
andauthored
Disable the building of slang-llvm when targeting wasm platform (shader-slang#5196)
Co-authored-by: Yong He <yonghe@outlook.com>
1 parent 15d1c6c commit a5d67ad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/ci.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ jobs:
9696
compiler: ${{matrix.compiler}}
9797
platform: ${{matrix.platform}}
9898
config: ${{matrix.config}}
99-
build-llvm: true
99+
build-llvm: ${{ matrix.platform != 'wasm' }}
100100
- name: Build Slang
101101
run: |
102102
if [[ "${{ matrix.platform }}" = "wasm" ]]; then
@@ -109,7 +109,7 @@ jobs:
109109
cmake --workflow --preset generators --fresh
110110
mkdir generators
111111
cmake --install build --prefix generators --component generators
112-
emcmake cmake -DSLANG_GENERATORS_PATH=generators/bin --preset emscripten -G "Ninja"
112+
emcmake cmake -DSLANG_GENERATORS_PATH=generators/bin --preset emscripten -G "Ninja" -DSLANG_SLANG_LLVM_FLAVOR=DISABLE
113113
cmake --build --preset emscripten --target slang
114114
[ -f "build.em/Release/lib/libslang.a" ]
115115
[ -f "build.em/Release/lib/libcompiler-core.a" ]

0 commit comments

Comments
 (0)