kernel: Nuke --cuda-path/--hip-path

Revert "kernel: Check HIP support of clang before disabling it"

This reverts commit 62c1374385.

Revert "kernel: Force disable LLVM HIP"

This reverts commit ef68678120.

Revert "kernel: Force disable LLVM CUDA"

This reverts commit ba14020f85.

Change-Id: I5cb2b4624eb0ec25dbc8c1b5888708d961ae59d7
This commit is contained in:
Michael Bestas
2024-09-30 18:47:04 +03:00
committed by LuK1337
parent 76c539efe2
commit dc34f77675

View File

@@ -249,11 +249,7 @@ ifneq ($(TARGET_KERNEL_CLANG_COMPILE),false)
endif
PATH_OVERRIDE += PATH=$(TARGET_KERNEL_CLANG_PATH)/bin:$$PATH
ifeq ($(KERNEL_CC),)
CLANG_EXTRA_FLAGS := --cuda-path=/dev/null
ifeq ($(shell $(TARGET_KERNEL_CLANG_PATH)/bin/clang -v --hip-path=/dev/null >/dev/null 2>&1; echo $$?),0)
CLANG_EXTRA_FLAGS += --hip-path=/dev/null
endif
KERNEL_CC := CC="$(CCACHE_BIN) clang $(CLANG_EXTRA_FLAGS)"
KERNEL_CC := CC="$(CCACHE_BIN) clang"
endif
endif