Skip to content

Commit

Permalink
Assume all 64-bit archs use the same target triple
Browse files Browse the repository at this point in the history
 options_compile.cpp:193:2: error: "Can't define target triple: unknown architecture."
 #error "Can't define target triple: unknown architecture."
  ^
  • Loading branch information
jbeich authored and AlexeySotkin committed Jan 16, 2020
1 parent b28f74f commit 3e753ba
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions options_compile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -183,14 +183,10 @@ std::string EffectiveOptionsFilter::processOptions(const OpenCLArgList &args,

effectiveArgs.push_back("-triple");
if (szTriple.empty()) {
#if defined(_WIN64) || defined(__x86_64__) || defined(_M_AMD64) || \
defined(_M_X64)
#if defined(_M_X64) || defined(__LP64__)
szTriple = "spir64-unknown-unknown";
#elif defined(_WIN32) || defined(i386) || defined(__i386__) || \
defined(__x86__)
szTriple = "spir-unknown-unknown";
#else
#error "Can't define target triple: unknown architecture."
szTriple = "spir-unknown-unknown";
#endif
}

Expand Down

0 comments on commit 3e753ba

Please sign in to comment.