Skip to content

Commit e2457d5

Browse files
committed
- XFAIL for non-native builds.
- Replace llvm-config --libdir by %libdir substitution.
1 parent 831c165 commit e2457d5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

clang/test/bindings/python/bindings.sh

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,8 @@
2626
# be explicitly skipped via appropriate LIT_ARGS, or adding a mechanism to
2727
# allow specifying a python interpreter compiled for the target that could
2828
# be executed using qemu-user.
29-
#
30-
# FIXME: Handle CMAKE_CROSSCOMPILING.
31-
# Again, might already be handled by libclang-loadable.
29+
# XFAIL: !native
3230

3331
# RUN: env PYTHONPATH=%S/../../../bindings/python \
34-
# RUN: CLANG_LIBRARY_PATH=`llvm-config --libdir` \
32+
# RUN: CLANG_LIBRARY_PATH=%libdir \
3533
# RUN: %python -m unittest discover -s %S/tests

clang/test/bindings/python/lit.local.cfg

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,6 @@ def is_libclang_loadable():
3636
if is_libclang_loadable():
3737
config.available_features.add("libclang-loadable")
3838

39+
config.substitutions.append(('%libdir', config.clang_lib_dir))
40+
3941
config.suffixes = ['.sh']

0 commit comments

Comments
 (0)