HomePhabricator

Add support for FreeBSD's LD_32_LIBRARY_PATH

Description

Add support for FreeBSD's LD_32_LIBRARY_PATH

Summary:
Because the dynamic linker for 32-bit executables on 64-bit FreeBSD uses
the environment variable LD_32_LIBRARY_PATH instead of
LD_LIBRARY_PATH to find needed dynamic libraries, running the 32-bit
parts of the dynamic ASan tests will fail with errors similar to:

ld-elf32.so.1: Shared object "libclang_rt.asan-i386.so" not found, required by "Asan-i386-inline-Dynamic-Test"

This adds support for setting up LD_32_LIBRARY_PATH for the unit and
regression tests. It will likely also require a minor change to the
TestingConfig class in llvm/utils/lit/lit.

Reviewers: emaste, kcc, rnk, arichardson

Reviewed By: arichardson

Subscribers: kubamracek, krytarowski, fedor.sergeev, delcypher, #sanitizers, llvm-commits

Tags: #llvm, #sanitizers

Differential Revision: https://reviews.llvm.org/D65772

Details

Committed
dimAug 10 2019, 12:07 PM
Reviewer
arichardson
Differential Revision
D65772: Add support for FreeBSD's LD_32_LIBRARY_PATH
Parents
rL368515: [X86][SSE] Lower shuffle as ANY_EXTEND_VECTOR_INREG
Branches
Unknown
Tags
Unknown