Skip to content

Commit 61c521d

Browse files
16bit-ykikoclaude
andcommitted
fix(ci): also unset LDFLAGS/CFLAGS for cross-compilation
Conda's cross-compilation toolchain sets LDFLAGS with -L$CONDA_PREFIX/lib pointing to host x86_64 libraries. CMake picks up LDFLAGS from the environment, causing lld to find incompatible libgcc_s.so.1. Strip all conda compiler flags since our toolchain.cmake provides the correct settings. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 9d87959 commit 61c521d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/test-cmake.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,14 +81,14 @@ jobs:
8181
shell: bash
8282
run: |
8383
ENV="${{ matrix.pixi_env || 'default' }}"
84-
pixi run -e "$ENV" -- env -u LIBRARY_PATH \
84+
pixi run -e "$ENV" -- env -u LIBRARY_PATH -u LDFLAGS -u CFLAGS -u CXXFLAGS -u CPPFLAGS \
8585
cmake -B "build/${{ matrix.build_type }}" -G Ninja \
8686
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \
8787
-DCMAKE_TOOLCHAIN_FILE=cmake/toolchain.cmake \
8888
-DCLICE_ENABLE_TEST=ON \
8989
-DCLICE_CI_ENVIRONMENT=OFF \
9090
"-DCLICE_TARGET_TRIPLE=${{ matrix.target_triple }}"
91-
pixi run -e "$ENV" -- env -u LIBRARY_PATH \
91+
pixi run -e "$ENV" -- env -u LIBRARY_PATH -u LDFLAGS -u CFLAGS -u CXXFLAGS -u CPPFLAGS \
9292
cmake --build "build/${{ matrix.build_type }}"
9393
9494
- name: Upload cross-compiled binaries

0 commit comments

Comments
 (0)