Skip to content

Commit 21b7bab

Browse files
arman-bdclaude
andcommitted
fix: remove Apple assembly files before building BoringSSL on Linux
BoringSSL's CMake configuration was incorrectly trying to compile Apple-specific assembly files (e.g., aes-gcm-avx2-x86_64-apple.S) on Linux runners, causing build failures. Root cause: BoringSSL ships with pre-generated assembly files for all platforms (apple, linux, win) and CMake should filter them based on the target platform. However, something in the GitHub Actions environment was confusing the platform detection. Workaround: Explicitly remove Apple-specific assembly files before running CMake on Linux. This ensures only Linux-compatible assembly files are present during the build. Changes: - Add find command to delete *-apple.S files on Linux - Unset APPLE environment variable that might confuse CMake - This is a temporary workaround until root cause is identified 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 906cd15 commit 21b7bab

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

scripts/linux/setup_vendors.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,12 @@ if [ ! -f "build/libssl.a" ]; then
7272
unset CMAKE_OSX_ARCHITECTURES
7373
unset CMAKE_OSX_DEPLOYMENT_TARGET
7474
unset CMAKE_OSX_SYSROOT
75+
unset APPLE
76+
77+
# Workaround: Remove Apple-specific assembly files that shouldn't be built on Linux
78+
# BoringSSL's CMake sometimes incorrectly tries to build these on Linux
79+
echo "Removing Apple-specific assembly files..."
80+
find ../gen/bcm -name "*-apple.S" -delete || true
7581

7682
cmake -DCMAKE_BUILD_TYPE=Release \
7783
-DCMAKE_POSITION_INDEPENDENT_CODE=ON \

0 commit comments

Comments
 (0)