Skip to content

Commit

Permalink
try fixing precompilation jobs on manylinux2014
Browse files Browse the repository at this point in the history
  • Loading branch information
cocoa-xu committed Nov 21, 2023
1 parent 2070510 commit 74dfba1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,17 @@ ifdef CC_PRECOMPILER_CURRENT_TARGET
CMAKE_CONFIGURE_FLAGS=-D CMAKE_OSX_ARCHITECTURES=x86_64
endif
endif

ifeq ($(findstring manylinux2014, $(HNSWLIB_CI_PRECOMPILE)), manylinux2014)
CC=gcc
CXX=g++
endif
endif

ifdef CMAKE_TOOLCHAIN_FILE
CMAKE_CONFIGURE_FLAGS=-D CMAKE_TOOLCHAIN_FILE="$(CMAKE_TOOLCHAIN_FILE)"
endif

ifeq (${HNSWLIB_CI_PRECOMPILE}, manylinux2014)
CC=gcc
CXX=g++
endif

CMAKE_BUILD_TYPE ?= Release
DEFAULT_JOBS ?= 1
CMAKE_HNSWLIB_BUILD_DIR = $(MIX_APP_PATH)/cmake_hnswlib
Expand Down

0 comments on commit 74dfba1

Please sign in to comment.