Skip to content

Commit

Permalink
Merge pull request #1052 from emankov/HIPIFY
Browse files Browse the repository at this point in the history
[HIPIFY][#703][#713][build][cleanup] Remove the workaround with a temporary technical option `-D125860=ON`
  • Loading branch information
emankov authored Oct 5, 2023
2 parents 22696cd + 149af2d commit 7ad9f7b
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -156,12 +156,7 @@ if (NOT HIPIFY_CLANG_TESTS_ONLY)
endif()
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} ${addr_var}")

# [ToDo] Remove D125860 related guards from CMakeLists.txt with the LLVM 16.0.0 official release.
option (D125860 "Enables treating clang's resource dir as lib/clang/X.Y.Z, as it was before clang's change D125860, merged as e1b88c8a09be25b86b13f98755a9bd744b4dbf14" OFF)
if(D125860)
add_definitions(-D125860)
endif()
if((LLVM_PACKAGE_VERSION VERSION_EQUAL "16.0.0" OR LLVM_PACKAGE_VERSION VERSION_GREATER "16.0.0") AND (NOT D125860))
if(LLVM_PACKAGE_VERSION VERSION_EQUAL "16.0.0" OR LLVM_PACKAGE_VERSION VERSION_GREATER "16.0.0")
set(LIB_CLANG_RES ${LLVM_VERSION_MAJOR})
else()
set(LIB_CLANG_RES ${LLVM_VERSION_MAJOR}.${LLVM_VERSION_MINOR}.${LLVM_VERSION_PATCH})
Expand Down

0 comments on commit 7ad9f7b

Please sign in to comment.