Skip to content

Commit 177132e

Browse files
author
Salinas, David
authored
SWDEV-542579 - [Windows Hip/ROCm SDK] Hipcc does not add -isystem to … (llvm#3063)
2 parents 819fda0 + 6f6ad3b commit 177132e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

amd/hipcc/src/hipBin_nvidia.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,11 @@ const string& HipBinNvidia::getHipLdFlags() const {
202202

203203
// initialize Hipc flags
204204
void HipBinNvidia::initializeHipCFlags() {
205+
string hipCFlags;
206+
string hipIncludePath;
207+
hipIncludePath = getHipInclude();
208+
hipCFlags += " -isystem \"" + hipIncludePath + "\"";
209+
hipCFlags_ = hipCFlags;
205210
}
206211

207212
// returns Hipccx flags
@@ -212,6 +217,9 @@ const string& HipBinNvidia::getHipCXXFlags() const {
212217
// initializes the HIPCCX flags
213218
void HipBinNvidia::initializeHipCXXFlags() {
214219
string hipCXXFlags = " -Wno-deprecated-gpu-targets ";
220+
string hipIncludePath;
221+
hipIncludePath = getHipInclude();
222+
hipCXXFlags += " -isystem \"" + hipIncludePath + "\"";
215223
hipCXXFlags_ = hipCXXFlags;
216224
}
217225

0 commit comments

Comments
 (0)