Skip to content

Commit 3742b94

Browse files
committed
force use of homebrew clang (like upstream)
1 parent 183baf2 commit 3742b94

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

.github/workflows/posix.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,12 +93,13 @@ jobs:
9393
run: |
9494
echo "DOCKER_TEST_IMAGE=$(echo multibuild/xenial_${{ matrix.PLAT}})" >> $GITHUB_ENV;
9595
96-
- name: Setup gcc from homebrew
96+
- name: Setup clang from homebrew
9797
if: ${{ matrix.os == 'macos-13' }}
9898
run: |
9999
brew reinstall gcc
100100
brew install coreutils
101101
brew install llvm
102+
echo "CC=/opt/homebrew/opt/llvm/bin/clang" >> $GITHUB_ENV;
102103
103104
- name: Print some Environment variable
104105
run: |

tools/build_steps.sh

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,12 @@ function do_build_lib {
206206
echo "Due to the qemu versions 7.2 causing utest cases to fail,"
207207
echo "the utest dsdot:dsdot_n_1 have been temporarily disabled."
208208
fi
209+
echo start building
210+
echo "========== gcc ============="
211+
echo path $PATH
212+
echo gcc path $(which gcc)
213+
echo gcc version $(gcc --version)
214+
echo "========== gcc ============="
209215
if [ "$dynamic_list" != "" ]; then
210216
CFLAGS="$CFLAGS -fvisibility=protected -Wno-uninitialized" \
211217
make BUFFERSIZE=20 DYNAMIC_ARCH=1 QUIET_MAKE=1 \
@@ -220,11 +226,6 @@ function do_build_lib {
220226
BINARY="$bitness" $interface_flags \
221227
TARGET="$target"
222228
fi
223-
echo start building
224-
echo "========== gcc ============="
225-
echo gcc path $(which gcc)
226-
echo gcc version $(gcc --version)
227-
echo "========== gcc ============="
228229
make PREFIX=$BUILD_PREFIX $interface_flags install
229230
popd
230231
if [ "$nightly" = "1" ]; then

0 commit comments

Comments
 (0)