aboutsummaryrefslogtreecommitdiff
path: root/llvm/tools/llvm-rc/ResourceScriptParser.cpp
diff options
context:
space:
mode:
authorMichal Gorny <mgorny@gentoo.org>2017-08-28 20:29:52 +0000
committerMichal Gorny <mgorny@gentoo.org>2017-08-28 20:29:52 +0000
commit62dc83b9b7a0a9c002a3a92639e97d11afba6f42 (patch)
tree8991369fa263ad105488ef7fb174f740ac723dba /llvm/tools/llvm-rc/ResourceScriptParser.cpp
parent20cb7e887f00b097b632b9732ea40710ba6a8bba (diff)
downloadllvm-62dc83b9b7a0a9c002a3a92639e97d11afba6f42.zip
llvm-62dc83b9b7a0a9c002a3a92639e97d11afba6f42.tar.gz
llvm-62dc83b9b7a0a9c002a3a92639e97d11afba6f42.tar.bz2
Reland r311836 - [Driver] Use arch type to find compiler-rt libraries (on Linux)
Use llvm::Triple::getArchTypeName() when looking for compiler-rt libraries, rather than the exact arch string from the triple. This is more correct as it matches the values used when building compiler-rt (builtin-config-ix.cmake) which are the subset of the values allowed in triples. For example, this fixes an issue when the compiler set for i686-pc-linux-gnu triple would not find an i386 compiler-rt library, while this is the exact arch that is detected by compiler-rt. The same applies to any other i?86 variant allowed by LLVM. This also makes the special case for MSVC unnecessary, since now i386 will be used reliably for all 32-bit x86 variants. Differential Revision: https://reviews.llvm.org/D26796 llvm-svn: 311923
Diffstat (limited to 'llvm/tools/llvm-rc/ResourceScriptParser.cpp')
0 files changed, 0 insertions, 0 deletions