aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/scripts/coverage.py
diff options
context:
space:
mode:
authorBruce Richardson <bruce.richardson@intel.com>2018-09-27 21:09:56 +0000
committerJussi Pakkanen <jpakkane@gmail.com>2018-10-03 01:01:10 +0300
commit386e5b876fa1395ec2699c9895ac93e4eaf680ad (patch)
tree878e09fb9dcad6ab8540f87f4ff8557fee0ff647 /mesonbuild/scripts/coverage.py
parentc6eaf373f3aeeaf36fea8d71407f7e971c770cd8 (diff)
downloadmeson-386e5b876fa1395ec2699c9895ac93e4eaf680ad.zip
meson-386e5b876fa1395ec2699c9895ac93e4eaf680ad.tar.gz
meson-386e5b876fa1395ec2699c9895ac93e4eaf680ad.tar.bz2
Verify library directories as either 32-bit or 64-bit
In get_library_dirs() we are trusting the compiler to return a correct list of directories to search for libraries, based on whether or not we are compiling 64-bit or 32-bit. Unfortunately, this is often not the case, as 64-bit libraries often are returned when compiling with -m32 on a 64-bit OS. Since system directories do not contain a mix of libraries, the solution here is to check each directory, by picking a .so file in the directory and checking whether its 64-bit or 32-bit. If we can't determine if we want 32-bit or 64-bit, just skip the checks and assume the directory is good.
Diffstat (limited to 'mesonbuild/scripts/coverage.py')
0 files changed, 0 insertions, 0 deletions