This assumes that LLVM is installed in the system path, but avoids
compiling the path of binaries into the library.
Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
// Now compile the code to llvm using clang
#if LLVM_VERSION_MINOR <= 1
- std::string compileCmd = LLVM_PREFIX "/bin/clang -x cl -fno-color-diagnostics -emit-llvm -O3 -ccc-host-triple ptx32 -c ";
+ std::string compileCmd = "clang -x cl -fno-color-diagnostics -emit-llvm -O3 -ccc-host-triple ptx32 -c ";
#else
- std::string compileCmd = LLVM_PREFIX "/bin/clang -ffp-contract=off -emit-llvm -O3 -target nvptx -x cl -c ";
+ std::string compileCmd = "clang -ffp-contract=off -emit-llvm -O3 -target nvptx -x cl -c ";
#endif /* LLVM_VERSION_MINOR <= 1 */
compileCmd += clName;
compileCmd += " ";