Skip to content

Commit

Permalink
Merge pull request #13930 from dnakamura/jit_include
Browse files Browse the repository at this point in the history
CMake: add guards on compiler arch includes
  • Loading branch information
pshipton committed Nov 18, 2021
2 parents 6f4eb2a + 4312067 commit 1c72aaf
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions runtime/compiler/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,11 @@ if(J9VM_OPT_JITSERVER)
add_subdirectory(net)
endif()

add_subdirectory(${TR_HOST_ARCH})
if(NOT TR_TARGET_ARCH STREQUAL TR_HOST_ARCH)
if(IS_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/${TR_HOST_ARCH}")
add_subdirectory(${TR_HOST_ARCH})
endif()

if(NOT TR_TARGET_ARCH STREQUAL TR_HOST_ARCH AND IS_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/${TR_TARGET_ARCH}")
add_subdirectory(${TR_TARGET_ARCH})
endif()

Expand Down

0 comments on commit 1c72aaf

Please sign in to comment.