Skip to content

Commit 21b341c

Browse files
committed
chore: wip
1 parent d045f65 commit 21b341c

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

.github/workflows/precompile-php.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -600,6 +600,8 @@ jobs:
600600
# Set correct preprocessor for macOS (prevent /lib/cpp fallback)
601601
export CPP="clang -E"
602602
export ac_cv_prog_CPP="clang -E"
603+
# Bypass preprocessor sanity check entirely (problematic with complex CPPFLAGS)
604+
export ac_cv_prog_CPP_works=yes
603605
# Help iconv/gettext tests link/run cleanly (ensure -liconv seen first)
604606
export LIBS="-liconv -lintl $LIBS"
605607
# Ensure we link against libc++ (replace any libstdc++)
@@ -872,6 +874,7 @@ jobs:
872874
ac_cv_prog_cc_c99= \
873875
ac_cv_prog_cc_stdc= \
874876
ac_cv_prog_CPP="clang -E" \
877+
ac_cv_prog_CPP_works=yes \
875878
ac_cv_header_stdc=yes \
876879
ac_cv_header_sys_types_h=yes \
877880
ac_cv_header_sys_stat_h=yes \
@@ -936,13 +939,10 @@ jobs:
936939
export ac_cv_prog_CPP="gcc -E"
937940
export CPP="gcc -E"
938941
939-
# Test preprocessor before configure to ensure it works
940-
echo "🔍 Testing preprocessor sanity..."
941-
echo '#include <stdio.h>' | gcc -E - > /dev/null 2>&1 || {
942-
echo "❌ Preprocessor test failed, trying alternative"
943-
export CPP="/usr/bin/cpp"
944-
export ac_cv_prog_CPP="/usr/bin/cpp"
945-
}
942+
# Bypass preprocessor sanity check entirely (it's problematic with fake_headers)
943+
echo "🔍 Bypassing preprocessor sanity check..."
944+
export ac_cv_prog_CPP_works=yes
945+
export ac_cv_prog_CPP="gcc -E"
946946
947947
# Clear any existing autoconf cache that might cause issues
948948
rm -rf autom4te.cache config.cache
@@ -973,6 +973,7 @@ jobs:
973973
ac_cv_prog_cc_c99= \
974974
ac_cv_prog_cc_stdc= \
975975
ac_cv_prog_CPP="$CPP" \
976+
ac_cv_prog_CPP_works=yes \
976977
ac_cv_header_stdc=yes \
977978
ac_cv_header_sys_types_h=yes \
978979
ac_cv_header_sys_stat_h=yes \

0 commit comments

Comments
 (0)