Skip to content

Commit e667297

Browse files
committed
fix(build): add linker flags for HIP_CLANG to support shared library builds
1 parent 8621f35 commit e667297

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,10 @@ ifeq ($(PLATFORM),windows)
126126
MSVC_LIBS += bcrypt.lib ucrt.lib msvcrt.lib legacy_stdio_definitions.lib
127127
DEF_FILE := $(BUILD_DIR)/ai.def
128128
STRIP = echo "No stripping needed for MSVC"
129+
else ifeq ($(USE_HIP_CLANG),1)
130+
LDFLAGS += -shared -lbcrypt
131+
DEF_FILE := $(BUILD_DIR)/ai.def
132+
STRIP = strip --strip-unneeded $@
129133
else
130134
LDFLAGS += -shared -lbcrypt -lgomp -lstdc++
131135
DEF_FILE := $(BUILD_DIR)/ai.def

0 commit comments

Comments
 (0)