Skip to content

Commit 6b86029

Browse files
authored
[Comgr] Remove file reorg backward compatibility macro (llvm#2989)
Now that the file reorg has been fully completed, and the backwards compatibility paths have been removed, we no longer need these macros and checks in Comgr
1 parent a74ba40 commit 6b86029

File tree

2 files changed

+0
-117
lines changed

2 files changed

+0
-117
lines changed

amd/comgr/CMakeLists.txt

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ endif(EXISTS "${CMAKE_SOURCE_DIR}/../../.git")
3838

3939
include(GNUInstallDirs)
4040
include(CMakePackageConfigHelpers)
41-
option(FILE_REORG_BACKWARD_COMPATIBILITY "Enable File Reorg with backward compatibility" OFF)
4241
# Optionally, build Compiler Support with ccache.
4342
set(ROCM_CCACHE_BUILD OFF CACHE BOOL "Set to ON for a ccache enabled build")
4443
if (ROCM_CCACHE_BUILD)
@@ -327,26 +326,6 @@ install(FILES
327326
COMPONENT amd-comgr
328327
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/${amd_comgr_NAME})
329328

330-
#File reorg Backward compatibility function
331-
if(FILE_REORG_BACKWARD_COMPATIBILITY)
332-
# To enable/disable #error in wrapper header files
333-
if(NOT DEFINED ROCM_HEADER_WRAPPER_WERROR)
334-
if(DEFINED ENV{ROCM_HEADER_WRAPPER_WERROR})
335-
set(ROCM_HEADER_WRAPPER_WERROR "$ENV{ROCM_HEADER_WRAPPER_WERROR}"
336-
CACHE STRING "Header wrapper warnings as errors.")
337-
else()
338-
set(ROCM_HEADER_WRAPPER_WERROR "OFF" CACHE STRING "Header wrapper warnings as errors.")
339-
endif()
340-
endif()
341-
if(ROCM_HEADER_WRAPPER_WERROR)
342-
set(deprecated_error 1)
343-
else()
344-
set(deprecated_error 0)
345-
endif()
346-
347-
include(comgr-backward-compat.cmake)
348-
endif()
349-
350329
if(ENABLE_ASAN_PACKAGING)
351330
install(FILES
352331
"LICENSE.txt"

amd/comgr/comgr-backward-compat.cmake

Lines changed: 0 additions & 96 deletions
This file was deleted.

0 commit comments

Comments
 (0)