Skip to content

Commit 1f38b9d

Browse files
committed
Add missing environment variables for tsingmicro backend
Add the ${LLVM_BINARY_DIR} environment variable to $PATH to use the tsingmicro toolchain. Also, make sure to explicitly set the environment variables during the build and install phase. Signed-off-by: Liu Haoyu <liuhaoyutz@126.com>
1 parent ce20dba commit 1f38b9d

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/tsingmicro3.3-build-and-test.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@ jobs:
4040
source ~/env.sh
4141
export FLAGTREE_BACKEND=tsingmicro
4242
export TRITON_APPEND_CMAKE_ARGS="-DCMAKE_BUILD_TYPE=Release"
43+
export TX8_DEPS_ROOT=~/.flagtree/tsingmicro/tx8_deps
44+
export LLVM_SYSPATH=~/.flagtree/tsingmicro/tsingmicro-llvm21-glibc2.30-glibcxx3.4.28-python3.10-x64
45+
export LLVM_BINARY_DIR=${LLVM_SYSPATH}/bin
46+
export PYTHONPATH=${LLVM_SYSPATH}/python_packages/mlir_core:$PYTHONPATH
47+
export LD_LIBRARY_PATH=$TX8_DEPS_ROOT/lib:$LD_LIBRARY_PATH
48+
export PATH=${LLVM_BINARY_DIR}:${PATH}
4349
cd python
4450
python3 -m pip install . --no-build-isolation
4551

0 commit comments

Comments
 (0)