Skip to content

Commit afe6a5f

Browse files
committed
Improve get-lib-mimalloc
1 parent 8c77b9a commit afe6a5f

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

script/get-lib-mimalloc/customize.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def preprocess(i):
1111

1212
os_info = i['os_info']
1313

14-
cmake_command = f"""{env['MLC_CMAKE_BIN_WITH_PATH']} .. """
14+
cmake_command = f"""{env['MLC_CMAKE_BIN_WITH_PATH']} {env['MLC_MIMALLOC_SRC_PATH']} """
1515

1616
if env.get('MLC_MIMALLOC_CONFIG', '') != '':
1717
cmake_command += f""" {env['MLC_MIMALLOC_CONFIG'].replace("'", "")} """
@@ -28,7 +28,7 @@ def postprocess(i):
2828

2929
os_info = i['os_info']
3030

31-
lib_path = os.path.join(os.getcwd(), "obj", "lib")
31+
lib_path = os.path.join(os.getcwd(), "lib")
3232

3333
env['+LD_LIBRARY_PATH'] = [lib_path]
3434
env['MLC_MIMALLOC_PATH'] = os.path.dirname(lib_path)

script/get-lib-mimalloc/run.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ set -e
44

55
#Add your run commands here...
66
# run "$MLC_RUN_CMD"
7-
cd ${MLC_MIMALLOC_SRC_PATH}
8-
mkdir -p obj
9-
cd obj
7+
8+
mkdir -p lib
9+
cd lib
1010
echo "${MLC_MIMALLOC_CMAKE_COMMAND}"
1111
${MLC_MIMALLOC_CMAKE_COMMAND}
1212
make

0 commit comments

Comments
 (0)