Skip to content

Commit 9e6403e

Browse files
committed
fix(build): add HIP_CLANG support for object file compilation
1 parent 8da7e7c commit 9e6403e

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,8 @@ endif
325325
$(BUILD_DIR)/%$(OBJ_EXT): %.c
326326
ifeq ($(USE_MSVC),1)
327327
$(CC) $(CFLAGS) /O2 /c $< /Fo:$@
328+
else ifeq ($(USE_HIP_CLANG),1)
329+
$(CC) $(CFLAGS) -O3 -c $< -o $@
328330
else
329331
$(CC) $(CFLAGS) -O3 -fPIC -c $< -o $@
330332
endif

0 commit comments

Comments
 (0)