Merge pull request #245 from scchan/centos_fixes
various fixes for centos/rhel
This commit is contained in:
+3
-1
@@ -127,7 +127,9 @@ if ($HIP_PLATFORM eq "hcc") {
|
||||
|
||||
# Force -stdlib=libc++ on UB14.04
|
||||
$HOST_OSVER= `cat /etc/os-release | grep "^VERSION_ID\=" | cut -d= -f2 | tr -d '\n'`;
|
||||
if ($HOST_OSNAME eq "ubuntu" and $HOST_OSVER eq "\"14.04\"") {
|
||||
if (($HOST_OSNAME eq "ubuntu" and $HOST_OSVER eq "\"14.04\"")
|
||||
or ($HOST_OSNAME eq "\"centos\"" and $HOST_OSVER eq "\"7\"")
|
||||
or ($HOST_OSNAME eq "\"rhel\"" and $HOST_OSVER eq "\"7.4\"")) {
|
||||
$HIPCXXFLAGS .= " -stdlib=libc++";
|
||||
$setStdLib = 1;
|
||||
}
|
||||
|
||||
@@ -217,7 +217,7 @@ namespace
|
||||
using namespace ELFIO;
|
||||
using namespace std;
|
||||
|
||||
static constexpr pair<Elf64_Addr, Elf_Xword> r{0, 0};
|
||||
static const pair<Elf64_Addr, Elf_Xword> r{0, 0};
|
||||
|
||||
for (auto i = 0u; i != section.get_symbols_num(); ++i) {
|
||||
// TODO: this is boyscout code, caching the temporaries
|
||||
|
||||
مرجع در شماره جدید
Block a user