Skip to content

Commit

Permalink
Macos CI failing on M1
Browse files Browse the repository at this point in the history
Updated paths using $(brew --prefix llvm@17)/bin
  • Loading branch information
jbaldwin committed May 24, 2024
1 parent 3e3f948 commit 5e76f87
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/ci-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,15 @@ jobs:
submodules: recursive
- name: Release
run: |
brew --prefix llvm@17
ls $(brew --prefix llvm@17)/bin
mkdir Release
cd Release
cmake \
-GNinja \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_C_COMPILER=/usr/local/opt/llvm/bin//clang-${{ matrix.clang_version }} \
-DCMAKE_CXX_COMPILER=/usr/local/opt/llvm/bin//clang-${{ matrix.clang_version }} \
-DCMAKE_C_COMPILER=$(brew --prefix llvm@${{ matrix.clang_version }})/bin/clang-${{ matrix.clang_version }} \
-DCMAKE_CXX_COMPILER=$(brew --prefix llvm@${{ matrix.clang_version }})/bin/clang-${{ matrix.clang_version }} \
-DCMAKE_CXX_STANDARD=${{ matrix.cxx_standard }} \
-DLIBCORO_FEATURE_NETWORKING=${{ matrix.libcoro_feature_networking.enabled }} \
-DLIBCORO_FEATURE_TLS=${{ matrix.libcoro_feature_networking.tls }} \
Expand Down
3 changes: 0 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ project(libcoro

if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
set(MACOSX TRUE)
# We need to build with clang >= 17, assuming its installed by
# brew. We also need to force linking to libc++.a
add_link_options(-L/usr/local/opt/llvm/lib)
link_libraries(-lc++)
endif()

Expand Down

0 comments on commit 5e76f87

Please sign in to comment.