Skip to content

Commit 2434248

Browse files
mateuszchudykigcbot
authored andcommitted
Use Khronos translator by default on linux
Use Khronos translator by default on linux
1 parent 5ffba5c commit 2434248

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

IGC/CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,11 @@ endif()
273273
# The following cmake code perfoms search for the such translator.
274274
# But, until the transition is not completed, this code is under IGC_OPTION__LINK_KHRONOS_SPIRV_TRANSLATOR condition
275275
# Remove this condition after transition period is over
276-
option(IGC_OPTION__USE_KHRONOS_SPIRV_TRANSLATOR_IN_SC "[Experimental] Enable usage of Khronos SPIRV-LLVM-Translator in Scalar Compiler" OFF)
276+
if(CMAKE_SYSTEM_NAME MATCHES "Windows")
277+
option(IGC_OPTION__USE_KHRONOS_SPIRV_TRANSLATOR_IN_SC "[Experimental] Enable usage of Khronos SPIRV-LLVM-Translator in Scalar Compiler" OFF)
278+
else()
279+
option(IGC_OPTION__USE_KHRONOS_SPIRV_TRANSLATOR_IN_SC "[Experimental] Enable usage of Khronos SPIRV-LLVM-Translator in Scalar Compiler" ON)
280+
endif()
277281

278282
# TODO: Change this flag to opt-out or remove completely once
279283
# opaque pointers are fully supported within the IGC stack.

0 commit comments

Comments
 (0)