[compiler-rt] Respect CMAKE_NM
authorShoaib Meenai <smeenai@fb.com>
Sat, 15 Jun 2019 04:40:16 +0000 (04:40 +0000)
committerShoaib Meenai <smeenai@fb.com>
Sat, 15 Jun 2019 04:40:16 +0000 (04:40 +0000)
commit744870f469049ac26bd1cbed5730512794dfa5fa
tree54ff2dc1c9211842950b5374fda8273d436f5818
parent968b5f84af2b6461fdb9835f6b00706d19d18938
[compiler-rt] Respect CMAKE_NM

The default nm executable may not be able to handle the architecture
we're building the sanitizers for. Respect CMAKE_NM if it's set to
ensure we're using the correct nm tool. Preserve the existing NM
environment variable override to not break its users.

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

llvm-svn: 363483
compiler-rt/cmake/Modules/SanitizerUtils.cmake
compiler-rt/lib/sanitizer_common/scripts/gen_dynamic_list.py