Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use -isystem to specify hcc headers #461

Open
wants to merge 1 commit into
base: clang_tot_upgrade
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions hcc_config/hcc_config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ void cxxflags(void) {
// using the libc++ for C++ runtime
#ifdef USE_LIBCXX
// Add include path to the libcxx headers
std::cout << " -I" XSTR(LIBCXX_HEADER) ;
std::cout << " -isystem " XSTR(LIBCXX_HEADER) ;
std::cout << " -stdlib=libc++";
#endif

Expand All @@ -108,21 +108,21 @@ void cxxflags(void) {

// clamp
if (build_mode) {
std::cout << " -I" CMAKE_BUILD_INC_DIR;
std::cout << " -isystem " CMAKE_BUILD_INC_DIR;
} else if (install_mode) {
if (const char *p = getenv("HCC_HOME")) {
std::cout << " -I" << p << "/include";
std::cout << " -isystem " << p << "/include";
} else {
std::cout << " -I" << get_path(path_hcc_include);
std::cout << " -I" << CMAKE_ROCM_ROOT << "/include";
std::cout << " -isystem " << get_path(path_hcc_include);
std::cout << " -isystem " << CMAKE_ROCM_ROOT << "/include";
}
} else {
assert(0 && "Unreacheable!");
}

#ifdef CODEXL_ACTIVITY_LOGGER_ENABLED
// CodeXL Activity Logger
std::cout << " -I" XSTR(CODEXL_ACTIVITY_LOGGER_HEADER);
std::cout << " -isystem " XSTR(CODEXL_ACTIVITY_LOGGER_HEADER);
#endif
}

Expand Down