Skip to content

Commit

Permalink
pipeline debug
Browse files Browse the repository at this point in the history
  • Loading branch information
teqdruid committed May 17, 2024
1 parent 74c38e6 commit c490e4d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/pycdePublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@ jobs:
CIBW_BUILD: ${{ matrix.python-env }}
CIBW_ENVIRONMENT: >
CMAKE_GENERATOR=Ninja
CC=clang
CXX=clang++
SETUPTOOLS_SCM_DEBUG=True
BUILD_TYPE=RelWithAsserts
RUN_TESTS=True
Expand Down
5 changes: 3 additions & 2 deletions frontends/PyCDE/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ class CMakeBuild(build_py):

def run(self):
target_dir = self.build_lib
test = os.getenv("RUN_TESTS")
cmake_build_dir = os.getenv("PYCDE_CMAKE_BUILD_DIR")
if not cmake_build_dir:
cmake_build_dir = os.path.join(target_dir, "..", "cmake_build")
Expand All @@ -68,6 +67,7 @@ def run(self):
"-DCIRCT_ENABLE_FRONTENDS=PyCDE",
"-DLLVM_EXTERNAL_PROJECTS=circt",
"-DLLVM_EXTERNAL_CIRCT_SOURCE_DIR={}".format(circt_dir),
"-DESI_RUNTIME=ON",
]
if "CC" in os.environ:
cmake_args += [f"-DCMAKE_C_COMPILER={os.environ['CC']}"]
Expand Down Expand Up @@ -96,7 +96,8 @@ def run(self):
"check-pycde",
] + build_args,
cwd=cmake_build_dir)
if test.lower() == "true":

if "RUN_TESTS" in os.environ and os.environ["RUN_TESTS"] != "false":
subprocess.check_call([
"cmake",
"--build",
Expand Down
4 changes: 3 additions & 1 deletion lib/Dialect/ESI/runtime/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,9 @@ if (WHEEL_BUILD)
endif()

# Pybind11 is used to wrap the ESIRuntime APIs.
find_package(Python3 COMPONENTS Interpreter Development)
if(NOT DEFINED Python3_FOUND)
find_package(Python3 COMPONENTS Interpreter Development)
endif()
if(Python3_FOUND)
IF(MSVC)
# Work around an issue with pybind11 and cmake incompatibility on Windows in debug mode.
Expand Down
1 change: 1 addition & 0 deletions lib/Dialect/OM/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ add_circt_dialect_library(
MLIROMIncGen
MLIROMAttrIncGen
MLIROMOpInterfacesIncGen
MLIRBuiltinTypeInterfacesIncGen

LINK_COMPONENTS
Support
Expand Down

0 comments on commit c490e4d

Please sign in to comment.