Skip to content

Commit

Permalink
Test for clang compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
SalOne22 committed Oct 16, 2023
1 parent 25ea7a3 commit d866577
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/rimage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,9 @@ jobs:
shell: cmd
run: |
call "C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/VC/Auxiliary/Build/vcvars64.bat"
cargo build --features avif,webp --release
set CC=C:/Program Files/LLVM/bin/clang.exe
set CXX=C:/Program Files/LLVM/bin/clang++.exe
cargo build --all-features --release
- name: Test 🧪
if: matrix.target == 'x86_64-unknown-linux-gnu' || matrix.target == 'x86_64-apple-darwin'
Expand Down
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,14 @@ features = ["codec-aom"]
default-features = false
optional = true

# Because libjxl cant be build on x86_64 macos and msvc targets
[target.'cfg(not(any(all(target_os = "macos", target_arch = "x86_64"), target_env = "msvc")))'.dependencies.jpegxl-rs]
# Because libjxl cant be build on x86_64 macos
[target.'cfg(not(all(target_os = "macos", target_arch = "x86_64")))'.dependencies.jpegxl-rs]
version = "0.8.2+libjxl-0.8.2"
default-features = false
features = ["vendored"]
optional = true

[target.'cfg(any(all(target_os = "macos", target_arch = "x86_64"), target_env = "msvc"))'.dependencies.jpegxl-rs]
[target.'cfg(all(target_os = "macos", target_arch = "x86_64"))'.dependencies.jpegxl-rs]
version = "0.8.2+libjxl-0.8.2"
default-features = false
optional = true
Expand Down

0 comments on commit d866577

Please sign in to comment.