Skip to content

Commit

Permalink
[cmake] Remove "partial" workaround.
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisCummins committed Mar 10, 2022
1 parent 870e8c6 commit 46bdb10
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions compiler_gym/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,9 @@

cg_add_all_subdirs()

# This target trickery with compiler_gym and compiler_gym_partial
# is needed because specs.py imports the compiler_gym module,
# therefore creating a circular dependency.
# compiler_gym_partial is all the other bits of the proto package so that
# specs.py can import it.
cg_py_library(
NAME
compiler_gym
GENERATED_SRCS
"$<TARGET_PROPERTY:compiler_gym__envs__llvm__specs,LOCATION>"
DEPS
::compiler_gym_partial
compiler_gym::envs::llvm::specs
PUBLIC
)

cg_py_library(
NAME
compiler_gym_partial
SRCS
"__init__.py"
DEPS
Expand All @@ -39,6 +23,7 @@ cg_py_library(
compiler_gym::util::util
compiler_gym::util::flags::flags
compiler_gym::wrappers::wrappers
compiler_gym::envs::llvm::specs
PUBLIC
)

Expand Down

0 comments on commit 46bdb10

Please sign in to comment.