Skip to content

Commit e095005

Browse files
jmmartinezsearlmc1
authored andcommitted
[Comgr][CMake] Add a CMake option COMGR_DISABLE_SPIRV
Before it was just a local CMake variable that did not end up in CMakeCache.txt. Change-Id: I65d2c6b5e0062af25efbff3a73067a5f54702747
1 parent 01ed6ba commit e095005

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

amd/comgr/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,9 @@ set(AMD_COMGR_PRIVATE_COMPILE_DEFINITIONS ${LLVM_DEFINITIONS})
166166
set(AMD_COMGR_PUBLIC_LINKER_OPTIONS)
167167
set(AMD_COMGR_PRIVATE_LINKER_OPTIONS)
168168

169+
option(COMGR_DISABLE_SPIRV "To disable SPIRV in Comgr" OFF)
169170
if(${COMGR_DISABLE_SPIRV})
170-
list(APPEND AMD_COMGR_PRIVATE_COMPILE_OPTIONS "-DCOMGR_DISABLE_SPIRV")
171+
list(APPEND AMD_COMGR_PRIVATE_COMPILE_DEFINITIONS "COMGR_DISABLE_SPIRV")
171172
endif()
172173

173174
list(APPEND AMD_COMGR_PRIVATE_COMPILE_OPTIONS "-DAMD_COMGR_GIT_COMMIT=${AMD_COMGR_GIT_COMMIT}")

0 commit comments

Comments
 (0)