[ESI] Not every build has zlib (#6356)

Fixes Windows build
This commit is contained in:
John Demme 2023-10-30 17:51:23 -07:00 committed by GitHub
parent ba1cda97b9
commit 14e1bac2fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 0 deletions

View File

@ -1,3 +1,4 @@
// REQUIRES: zlib
// RUN: circt-opt %s --esi-connect-services --esi-appid-hier=top=top --esi-build-manifest="top=top to-file=%t1.json" | circt-opt | FileCheck --check-prefix=HIER %s
// RUN: FileCheck --input-file=%t1.json %s

View File

@ -71,6 +71,9 @@ if config.verilator_path != "":
if config.esi_capnp != "":
config.available_features.add('capnp')
if config.zlib == "1":
config.available_features.add('zlib')
# Enable tests for schedulers relying on an external solver from OR-Tools.
if config.scheduling_or_tools != "":
config.available_features.add('or-tools')

View File

@ -37,6 +37,7 @@ config.circt_tools_dir = "@CIRCT_TOOLS_DIR@"
config.circt_shlib_dir = "@LLVM_LIBRARY_OUTPUT_INTDIR@"
config.verilator_path = "@VERILATOR_PATH@"
config.esi_capnp = "@ESI_CAPNP@"
config.zlib = "@HAVE_ZLIB@"
config.scheduling_or_tools = "@SCHEDULING_OR_TOOLS@"
config.llhd_sim_enabled = @CIRCT_LLHD_SIM_ENABLED@