diff options
Diffstat (limited to 'debian')
-rwxr-xr-x | debian/rules | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/debian/rules b/debian/rules index 5d68d33..cff7980 100755 --- a/debian/rules +++ b/debian/rules @@ -287,8 +287,9 @@ override_dh_auto_install: rm -f libclang.so # Remove artefact (where compiler-rt is built) - if test -d $(TARGET_BUILD)/tools/clang/runtime/compiler-rt/clang_linux; then \ - cd $(TARGET_BUILD)/tools/clang/runtime/compiler-rt/clang_linux && rm -rf $$(find . -mindepth 2 -maxdepth 2 -type d) && rm -rf $$(find -empty) && rm -rf */.dir; \ + if ls $(TARGET_BUILD)/tools/clang/runtime/compiler-rt/clang_linux/* 2>&1 >/dev/null; then \ + cd $(TARGET_BUILD)/tools/clang/runtime/compiler-rt/clang_linux && \ + rm -rf $$(find . -mindepth 2 -maxdepth 2 -type d) && rm -rf $$(find -empty) && rm -rf */.dir; \ fi mkdir -p $(CURDIR)/debian/clang-$(LLVM_VERSION)/usr/bin/ |