Skip to content

Commit 74c38e6

Browse files
committed
pipeline debug
1 parent 9ba9747 commit 74c38e6

File tree

2 files changed

+14
-5
lines changed

2 files changed

+14
-5
lines changed

.github/workflows/pycdePublish.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
# Clone the CIRCT repo and its submodules. Do shallow clone to save clone
2323
# time.
2424
- name: Get CIRCT
25-
uses: actions/checkout@v3
25+
uses: actions/checkout@v4
2626
with:
2727
submodules: true
2828

@@ -42,10 +42,13 @@ jobs:
4242
- name: Build wheel
4343
env:
4444
CIBW_BUILD: ${{ matrix.python-env }}
45-
CIBW_ENVIRONMENT: CMAKE_GENERATOR=Ninja CC=clang CXX=clang++
46-
SETUPTOOLS_SCM_DEBUG: True
47-
BUILD_TYPE: RelWithAsserts
48-
RUN_TESTS: True
45+
CIBW_ENVIRONMENT: >
46+
CMAKE_GENERATOR=Ninja
47+
CC=clang
48+
CXX=clang++
49+
SETUPTOOLS_SCM_DEBUG=True
50+
BUILD_TYPE=RelWithAsserts
51+
RUN_TESTS=True
4952
run: |
5053
set -o errexit
5154
export PATH=$PATH:$HOME/.local/bin

frontends/PyCDE/setup.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ def run(self):
5454
os.environ.get("CIRCT_DIRECTORY", os.path.join(_thisdir, "..", "..")))
5555
src_dir = os.path.abspath(os.path.join(circt_dir, "llvm", "llvm"))
5656
cfg = "Release"
57+
if "BUILD_TYPE" in os.environ:
58+
cfg = os.environ["BUILD_TYPE"]
5759
cmake_args = [
5860
"-DCMAKE_INSTALL_PREFIX={}".format(os.path.abspath(cmake_install_dir)),
5961
"-DPython3_EXECUTABLE={}".format(sys.executable.replace("\\", "/")),
@@ -67,6 +69,10 @@ def run(self):
6769
"-DLLVM_EXTERNAL_PROJECTS=circt",
6870
"-DLLVM_EXTERNAL_CIRCT_SOURCE_DIR={}".format(circt_dir),
6971
]
72+
if "CC" in os.environ:
73+
cmake_args += [f"-DCMAKE_C_COMPILER={os.environ['CC']}"]
74+
if "CXX" in os.environ:
75+
cmake_args += [f"-DCMAKE_CXX_COMPILER={os.environ['CXX']}"]
7076
if "CIRCT_EXTRA_CMAKE_ARGS" in os.environ:
7177
cmake_args += os.environ["CIRCT_EXTRA_CMAKE_ARGS"].split(" ")
7278
build_args = []

0 commit comments

Comments
 (0)