File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 69
69
$HIP_CLANG_INCLUDE = ` \" $HIP_CLANG_PATH /clang++\" --print-resource-dir` ;
70
70
} else {
71
71
$HIP_CLANG_INCLUDE = ` $HIP_CLANG_PATH /clang++ --print-resource-dir` ;
72
+ chomp ($HIP_CLANG_INCLUDE )
72
73
}
73
74
74
75
$CPP_CONFIG = " -D__HIP_PLATFORM_HCC__= -D__HIP_PLATFORM_AMD__=" ;
Original file line number Diff line number Diff line change @@ -228,7 +228,7 @@ void HipBinAmd::printCompilerInfo() const {
228
228
const string& hipClangPath = getCompilerPath ();
229
229
const string& hipPath = getHipPath ();
230
230
if (os == windows) {
231
- string cmd = hipClangPath + " /clang++ --version " ;
231
+ string cmd = hipClangPath + " /clang++ --print-resource-dir " ;
232
232
system (cmd.c_str ()); // hipclang version
233
233
cout << " llc-version :" << endl;
234
234
cmd = hipClangPath + " /llc --version" ;
@@ -241,7 +241,7 @@ void HipBinAmd::printCompilerInfo() const {
241
241
system (cmd.c_str ()); // ld flags
242
242
cout << endl;
243
243
} else {
244
- string cmd = hipClangPath + " /clang++ --version " ;
244
+ string cmd = hipClangPath + " /clang++ --print-resource-dir " ;
245
245
system (cmd.c_str ()); // hipclang version
246
246
cmd = hipClangPath + " /llc --version" ;
247
247
system (cmd.c_str ()); // llc version
You can’t perform that action at this time.
0 commit comments