From c83674433be5e89763eef28a30eca8c94d3899db Mon Sep 17 00:00:00 2001 From: Sergey Isupov Date: Tue, 24 Nov 2015 14:37:03 +0300 Subject: [PATCH] Fix issue #1122 --- ispc.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ispc.cpp b/ispc.cpp index b9e5b821..6e4292b5 100644 --- a/ispc.cpp +++ b/ispc.cpp @@ -478,6 +478,10 @@ Target::Target(const char *arch, const char *cpu, const char *isa, bool pic, boo } } + if (!strcasecmp(isa, "host")) { + isa = lGetSystemISA(); + } + if (isa == NULL) { // If a CPU was specified explicitly, try to pick the best // possible ISA based on that. @@ -1130,7 +1134,7 @@ Target::SupportedArchs() { const char * Target::SupportedTargets() { return - "sse2-i32x4, sse2-i32x8, " + "host, sse2-i32x4, sse2-i32x8, " "sse4-i32x4, sse4-i32x8, sse4-i16x8, sse4-i8x16, " "avx1-i32x4, " "avx1-i32x8, avx1-i32x16, avx1-i64x4, "