From e7955766c40f556abc2380fdabbbf2a4e7300172 Mon Sep 17 00:00:00 2001 From: Senichenkov Date: Thu, 30 Jan 2025 12:42:47 +0300 Subject: [PATCH] Add `export CC=...` in LLVM Clang python-bindings tests Add `export CC=...`, because otherwise CMake fails to locate a tool for scanning C++ module dependencies (no matter we don't use modules): https://github.com/emscripten-core/emscripten/issues/22305 --- .github/workflows/bindings-tests.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/bindings-tests.yml b/.github/workflows/bindings-tests.yml index b88b3ddfe..d38e6ab82 100644 --- a/.github/workflows/bindings-tests.yml +++ b/.github/workflows/bindings-tests.yml @@ -40,7 +40,9 @@ jobs: - os: ubuntu-latest toolset: llvm-clang - env: CXX=clang++-17 CXXFLAGS="-stdlib=libc++" LDFLAGS="-lc++abi" + # CMake cannot locate clang-scan-deps without `CC=clang` + # https://github.com/emscripten-core/emscripten/issues/22305 + env: CC=clang CXX=clang++-17 CXXFLAGS="-stdlib=libc++" LDFLAGS="-lc++abi" # Uncomment this to enable macOS gcc tests: # - os: macos-latest