Skip to content

Commit

Permalink
update CMakeLists.txt to create symbolic links for compute_programl a…
Browse files Browse the repository at this point in the history
…nd compute_autophase
  • Loading branch information
mostafaelhoushi committed Mar 6, 2022
1 parent 433d209 commit 0509377
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
3 changes: 3 additions & 0 deletions compiler_gym/third_party/autophase/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,6 @@ cg_cc_binary(
${LLVM_DEFINITIONS}
PUBLIC
)

ADD_CUSTOM_TARGET(link_compute_autophase_target ALL
COMMAND ${CMAKE_COMMAND} -E create_symlink ${CMAKE_BINARY_DIR}/compiler_gym/third_party/autophase/compute_autophase ${CMAKE_SOURCE_DIR}/compiler_gym/third_party/autophase/compute_autophase-prelinked)
3 changes: 3 additions & 0 deletions compiler_gym/third_party/programl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,6 @@ cg_cc_binary(
${LLVM_DEFINITIONS}
PUBLIC
)

ADD_CUSTOM_TARGET(link_compute_programl_target ALL
COMMAND ${CMAKE_COMMAND} -E create_symlink ${CMAKE_BINARY_DIR}/compiler_gym/third_party/programl/compute_programl ${CMAKE_SOURCE_DIR}/compiler_gym/third_party/programl/compute_programl)
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ def get_observation(self, observation_space: ObservationSpace) -> Event:
[
os.path.join(
os.path.dirname(__file__),
"../../../compiler_gym/third_party/autophase/compute_autophase",
"../../../compiler_gym/third_party/autophase/compute_autophase-prelinked",
),
self._llvm_path,
],
Expand All @@ -289,7 +289,7 @@ def get_observation(self, observation_space: ObservationSpace) -> Event:
[
os.path.join(
os.path.dirname(__file__),
"../../../compiler_gym/third_party/autophase/compute_autophase",
"../../../compiler_gym/third_party/autophase/compute_autophase-prelinked",
),
self._llvm_path,
],
Expand Down

0 comments on commit 0509377

Please sign in to comment.