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 Bartłomiej Rudecki
parent 92e08ffa3e
commit bf11d86dcb
Signed by: przekichane
GPG key ID: 751F23C6F014EF76

View file

@ -245,11 +245,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