Skip to content

Commit

Permalink
🔧 don't test clang-19 compilation - xtensor not ready yet
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaLau0220 committed Dec 5, 2024
1 parent f6d406b commit b78559b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/clang-test-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ jobs:
uses: actions/checkout@v3
- name: Download llvm-clang, parallel and coreutils
run: |
brew install llvm parallel coreutils
echo 'export PATH="$(brew --prefix)/opt/llvm/bin:$PATH"' >> /Users/runner/.bash_profile
echo 'export LDFLAGS="-L$(brew --prefix)/opt/llvm/lib"' >> /Users/runner/.bash_profile
echo 'export CPPFLAGS="-I$(brew --prefix)/opt/llvm/include"' >> /Users/runner/.bash_profile
brew install llvm@18 parallel coreutils
echo 'export PATH="$(brew --prefix)/opt/llvm@18/bin:$PATH"' >> /Users/runner/.bash_profile
echo 'export LDFLAGS="-L$(brew --prefix)/opt/llvm@18/lib"' >> /Users/runner/.bash_profile
echo 'export CPPFLAGS="-I$(brew --prefix)/opt/llvm@18/include"' >> /Users/runner/.bash_profile
- name: Build qsyn
run: |
Expand Down
11 changes: 8 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,17 @@ if(CMAKE_SYSTEM_NAME MATCHES "Darwin"
message(
STATUS
"Setting the correct unwind library for Clang18 on Apple Silicon")
# the clang should be installed at .../bin/clang++
# get the path to clang and remove the /bin/clang++
execute_process(
COMMAND brew --prefix OUTPUT_VARIABLE BREW_PREFIX
COMMAND which clang++
OUTPUT_VARIABLE CLANG_PATH
OUTPUT_STRIP_TRAILING_WHITESPACE)
link_libraries(${BREW_PREFIX}/opt/llvm/lib/libunwind.dylib)
string(REGEX REPLACE "/bin/clang\\+\\+" "" BREW_PREFIX ${CLANG_PATH})
message(STATUS "BREW_PREFIX: ${BREW_PREFIX}")
link_libraries(${BREW_PREFIX}/lib/libunwind.dylib)
set(CMAKE_EXE_LINKER_FLAGS
"${CMAKE_EXE_LINKER_FLAGS} -L${BREW_PREFIX}/opt/llvm/lib/c++")
"${CMAKE_EXE_LINKER_FLAGS} -L${BREW_PREFIX}/lib/c++")
endif()

include(scripts/cmake/target_link_libraries_system.cmake)
Expand Down
2 changes: 0 additions & 2 deletions src/duostra/scheduler_search.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
Copyright [ Copyright(c) 2023 DVLab, GIEE, NTU, Taiwan ]
****************************************************************************/

#include <omp.h>

#include <algorithm>
#include <tl/enumerate.hpp>
#include <vector>
Expand Down

0 comments on commit b78559b

Please sign in to comment.