aboutsummaryrefslogtreecommitdiff
path: root/src/zig_llvm.cpp
diff options
context:
space:
mode:
authoremekoi <emekankurumeh@outlook.com>2018-09-30 01:34:38 -0500
committerAndrew Kelley <superjoe30@gmail.com>2018-09-30 09:27:53 -0400
commite6446dfc86e42ccea93760d99cf4b421265cfb0e (patch)
treed6b15feb293476da5f0ec0caa76e7ccc7b81288f /src/zig_llvm.cpp
parent1428ef3b07eba5a414b30973b117f3c8328c727c (diff)
downloadzig-e6446dfc86e42ccea93760d99cf4b421265cfb0e.tar.gz
zig-e6446dfc86e42ccea93760d99cf4b421265cfb0e.zip
fixed native target detection
Diffstat (limited to 'src/zig_llvm.cpp')
-rw-r--r--src/zig_llvm.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/zig_llvm.cpp b/src/zig_llvm.cpp
index 8e9fe65d47..ea270bcb5a 100644
--- a/src/zig_llvm.cpp
+++ b/src/zig_llvm.cpp
@@ -712,7 +712,7 @@ void ZigLLVMGetNativeTarget(ZigLLVM_ArchType *arch_type, ZigLLVM_SubArchType *su
ZigLLVM_ObjectFormatType *oformat)
{
char *native_triple = LLVMGetDefaultTargetTriple();
- Triple triple(native_triple);
+ Triple triple(Triple::normalize(native_triple));
*arch_type = (ZigLLVM_ArchType)triple.getArch();
*sub_arch_type = (ZigLLVM_SubArchType)triple.getSubArch();