Skip to content

Commit 6d6920f

Browse files
committed
chore: wip
1 parent 3c04303 commit 6d6920f

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/precompile-php.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -396,9 +396,11 @@ jobs:
396396
fi
397397
398398
# Set C++17 flag for ICU4C compatibility - set explicitly
399+
# Only apply C++17 to C++ compiler, not C compiler
399400
export CXXFLAGS="-std=c++17 -stdlib=libc++"
400-
export CFLAGS="-std=c++17"
401-
export CPPFLAGS="$CPPFLAGS -std=c++17"
401+
# Keep CFLAGS clean for C compiler
402+
export CFLAGS=""
403+
export CPPFLAGS="$CPPFLAGS"
402404
echo "Set C++17 flags for configure step"
403405
echo "CXXFLAGS: $CXXFLAGS"
404406
echo "CFLAGS: $CFLAGS"
@@ -495,9 +497,11 @@ jobs:
495497
if [[ "${{ matrix.platform }}" == "darwin" ]]; then
496498
JOBS=$(sysctl -n hw.ncpu)
497499
# Ensure C++17 is used during build - set explicitly
500+
# Only apply C++17 to C++ compiler, not C compiler
498501
export CXXFLAGS="-std=c++17 -stdlib=libc++"
499-
export CFLAGS="-std=c++17"
500-
export CPPFLAGS="$CPPFLAGS -std=c++17"
502+
# Keep CFLAGS clean for C compiler
503+
export CFLAGS=""
504+
export CPPFLAGS="$CPPFLAGS"
501505
echo "Set C++17 flags for macOS build"
502506
else
503507
JOBS=$(nproc)

0 commit comments

Comments
 (0)