Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,20 @@ jobs:
build_py_project_in_venv
build_docs

downstream_tests:
strategy:
matrix:
downstream_project: [loopy]
name: Tests for downstream project ${{ matrix.downstream_project }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: "Main Script"
env:
DOWNSTREAM_PROJECT: ${{ matrix.downstream_project }}
run: |
curl -L -O https://tiker.net/ci-support-v0
. ./ci-support-v0
test_downstream "$DOWNSTREAM_PROJECT"

# vim: sw=4
17 changes: 3 additions & 14 deletions codepy/toolchain.py
Original file line number Diff line number Diff line change
Expand Up @@ -457,22 +457,11 @@ def guess_toolchain():
if sys.maxsize == 0x7fffffff:
kwargs["cflags"].extend(["-arch", "i386"])

return GCCToolchain(**kwargs)
elif "Apple LLVM" in version and "clang" in version:
if "-Wstrict-prototypes" in kwargs["cflags"]:
kwargs["cflags"].remove("-Wstrict-prototypes")
if "darwin" in version:
# Are we running in 32-bit mode?
# The python interpreter may have been compiled as a Fat binary
# So we need to check explicitly how we're running
# And update the cflags accordingly
import sys
if sys.maxsize == 0x7fffffff:
kwargs["cflags"].extend(["-arch", "i386"])

return GCCToolchain(**kwargs)
else:
raise ToolchainGuessError("unknown compiler")
raise ToolchainGuessError(
"Unable to determine compiler. Tried running "
f"'{kwargs['cc']} --version' and failed.")


def guess_nvcc_toolchain():
Expand Down