Skip to content

Commit

Permalink
macOs build VII
Browse files Browse the repository at this point in the history
  • Loading branch information
ibarrond committed Sep 18, 2023
1 parent 0347154 commit 8b1c7a3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/pytest-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,18 @@ jobs:
uses: KyleMayes/install-llvm-action@v1
with:
version: ${{ matrix.llvm-version }}
# - name: (MacOs only) Set gcc/gxx environment variables
# if: matrix.os == 'macos-latest'
# run: |
- name: (MacOs only) Set Clang environment variables
if: matrix.os == 'macos-latest'
run: |
echo "CC=$(which clang)" >> $GITHUB_ENV
echo "CXX=$(which clang)" >> $GITHUB_ENV
echo "PATH=/usr/local/opt/llvm/bin:$PATH" >> $GITHUB_ENV
echo "LDFLAGS=$LDFLAGS -L/usr/local/opt/llvm/lib" >> $GITHUB_ENV
echo "CPPFLAGS=$CPPFLAGS -I/usr/local/opt/llvm/include" >> $GITHUB_ENV
# echo "gcc=/usr/local/bin/$(ls /usr/local/bin | grep ^gcc-[0-9] | sort -V -r | head -n 1)" >> $GITHUB_ENV
# echo "gxx=/usr/local/bin/$(ls /usr/local/bin | grep ^g++-[0-9] | sort -V -r | head -n 1)" >> $GITHUB_ENV
# echo "gcc = $env.gcc"
# echo "gxx = $env.gxx"a
# echo "gxx = $env.gxx"
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -138,11 +138,11 @@ platforms = ["Linux", "Windows", "Darwin"]
]
extra_compile_args = [
{Windows = ["/O2","/std:c++17","/openmp"]},
{Darwin = ["-std=c++17","-O3","-fopenmp"]},
{Darwin = ["-std=c++17","-O3","-Xpreprocessor","-fopenmp"]},
{Linux = ["-std=c++17","-O3","-fopenmp"]} ]
extra_link_args = [
{Windows = []},
{Darwin = ["-Wl,-rpath,@loader_path/.", "-Wl,-no_compact_unwind", "-fopenmp"]},
{Darwin = ["-Wl,-rpath,@loader_path/.","-Wl,-no_compact_unwind", "-fopenmp"]},
{Linux = ["-Wl,-rpath=$ORIGIN/.", "-fopenmp"]} ]
libraries = ['SEAL']

Expand Down

0 comments on commit 8b1c7a3

Please sign in to comment.