File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -396,9 +396,11 @@ jobs:
396
396
fi
397
397
398
398
# Set C++17 flag for ICU4C compatibility - set explicitly
399
+ # Only apply C++17 to C++ compiler, not C compiler
399
400
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"
402
404
echo "Set C++17 flags for configure step"
403
405
echo "CXXFLAGS: $CXXFLAGS"
404
406
echo "CFLAGS: $CFLAGS"
@@ -495,9 +497,11 @@ jobs:
495
497
if [[ "${{ matrix.platform }}" == "darwin" ]]; then
496
498
JOBS=$(sysctl -n hw.ncpu)
497
499
# Ensure C++17 is used during build - set explicitly
500
+ # Only apply C++17 to C++ compiler, not C compiler
498
501
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"
501
505
echo "Set C++17 flags for macOS build"
502
506
else
503
507
JOBS=$(nproc)
You can’t perform that action at this time.
0 commit comments