Skip to content

Commit 36461f4

Browse files
authored
Make XRT binaries available in PATH for LIT testing (#2646)
1 parent 0fa87d7 commit 36461f4

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

programming_examples/lit.cfg.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,9 @@ def prepend_path(path):
242242
prepend_path(config.vitis_aietools_bin)
243243
llvm_config.with_environment("VITIS", config.vitis_root)
244244

245+
# Prepend path to XRT installation, which contains a more recent `aiebu-asm` than the Vitis installation.
246+
prepend_path(config.xrt_bin_dir)
247+
245248
peano_tools_dir = os.path.join(config.peano_install_dir, "bin")
246249
prepend_path(config.llvm_tools_dir)
247250
prepend_path(peano_tools_dir)

programming_guide/lit.cfg.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,9 @@ def prepend_path(path):
242242
prepend_path(config.vitis_aietools_bin)
243243
llvm_config.with_environment("VITIS", config.vitis_root)
244244

245+
# Prepend path to XRT installation, which contains a more recent `aiebu-asm` than the Vitis installation.
246+
prepend_path(config.xrt_bin_dir)
247+
245248
peano_tools_dir = os.path.join(config.peano_install_dir, "bin")
246249
prepend_path(config.llvm_tools_dir)
247250
prepend_path(peano_tools_dir)

test/lit.cfg.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,9 @@ def prepend_path(path):
237237
prepend_path(config.vitis_aietools_bin)
238238
llvm_config.with_environment("VITIS", config.vitis_root)
239239

240+
# Prepend path to XRT installation, which contains a more recent `aiebu-asm` than the Vitis installation.
241+
prepend_path(config.xrt_bin_dir)
242+
240243
peano_tools_dir = os.path.join(config.peano_install_dir, "bin")
241244
prepend_path(config.llvm_tools_dir)
242245
prepend_path(peano_tools_dir)

0 commit comments

Comments
 (0)