[CMake] Reduce number of deps (#3569)

Cull unnecessary dependences. Reduces the number of files which need to
be compiled for check-circt by ~20%. Compiles and links fine on my machine,
but we've had linking issues in the past, so this may be bumpy.
This commit is contained in:
John Demme 2022-07-20 17:37:24 -07:00 committed by GitHub
parent 840d509ff9
commit fdeaf90894
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 4 additions and 15 deletions

View File

@ -3,10 +3,8 @@ add_llvm_executable(circt-capi-ir-test
)
llvm_update_compile_flags(circt-capi-ir-test)
get_property(dialect_libs GLOBAL PROPERTY MLIR_DIALECT_LIBS)
target_link_libraries(circt-capi-ir-test
PRIVATE
${dialect_libs}
CIRCTCAPIComb
CIRCTCAPIHW

View File

@ -25,8 +25,6 @@ set(CIRCT_TEST_DEPENDS
esi-tester
handshake-runner
firtool
mlir-opt
mlir-cpu-runner
)
if (CIRCT_GTEST_AVAILABLE)

View File

@ -1,4 +1,3 @@
// RUN: mlir-opt --convert-func-to-llvm %s | mlir-cpu-runner --entry-point-result=i64 | FileCheck %s
// RUN: circt-opt -lower-std-to-handshake %s | handshake-runner | FileCheck %s
// RUN: handshake-runner %s | FileCheck %s
// CHECK: 42

View File

@ -1,12 +1,11 @@
get_property(dialect_libs GLOBAL PROPERTY MLIR_DIALECT_LIBS)
get_property(conversion_libs GLOBAL PROPERTY MLIR_CONVERSION_LIBS)
add_llvm_executable(handshake-runner handshake-runner.cpp Simulation.cpp)
llvm_update_compile_flags(handshake-runner)
target_link_libraries(handshake-runner PRIVATE
${dialect_libs}
${conversion_libs}
MLIRIR
MLIRParser
MLIRSupport
CIRCTHandshake
CIRCTStandardToHandshake
)

View File

@ -1,9 +1,4 @@
get_property(dialect_libs GLOBAL PROPERTY MLIR_DIALECT_LIBS)
get_property(conversion_libs GLOBAL PROPERTY MLIR_CONVERSION_LIBS)
set(LIBS
${dialect_libs}
${conversion_libs}
CIRCTLLHD
CIRCTComb
CIRCTHW