mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-27 05:32:22 +00:00
llvm-config: Quick fix for cross compilation. Don't be confsed between host and target. It has been there since r252532.
FIXME: The clause may use conditions of host compiler, not HOST_TRIPLE. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@260343 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8983a17ea2
commit
a43ea0a8f6
@ -352,7 +352,7 @@ int main(int argc, char **argv) {
|
||||
|
||||
StringRef SharedExt, SharedVersionedExt, SharedDir, SharedPrefix, StaticExt,
|
||||
StaticPrefix, StaticDir = "lib", DirSep = "/";
|
||||
const Triple HostTriple(Triple::normalize(LLVM_DEFAULT_TARGET_TRIPLE));
|
||||
const Triple HostTriple(Triple::normalize(LLVM_HOST_TRIPLE));
|
||||
if (HostTriple.isOSWindows()) {
|
||||
SharedExt = "dll";
|
||||
SharedVersionedExt = LLVM_DYLIB_VERSION ".dll";
|
||||
|
Loading…
x
Reference in New Issue
Block a user