diff options
author | Simon Richter <Simon.Richter@hogyros.de> | 2013-04-02 15:01:52 +0200 |
---|---|---|
committer | Zhigang Gong <zhigang.gong@linux.intel.com> | 2013-04-18 11:21:35 +0800 |
commit | 0546d2e673712282a08874a09f6d825f327f6396 (patch) | |
tree | 991984fc2496b0bb985d7fc007838a920670a27f /backend | |
parent | 27b862dc6cab1c6ca0fbdaae7493a47688c0bcdf (diff) |
Use "clang" command from PATH
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>
Diffstat (limited to 'backend')
-rw-r--r-- | backend/src/backend/program.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/backend/src/backend/program.cpp b/backend/src/backend/program.cpp index df0df285..d33c5334 100644 --- a/backend/src/backend/program.cpp +++ b/backend/src/backend/program.cpp @@ -119,9 +119,9 @@ namespace gbe { // 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 += " "; |