Force stdlib=libc++ on UB14.04
Change-Id: I7f24d663e57fbbee56afde12a0e61fc8bfc1e9b6
[ROCm/hip commit: 90cd2945f9]
Tá an tiomantas seo le fáil i:
1 tuismitheoir
c8214a5b20
tiomantas
54fe4d2d09
1 comhad athraithe
+8
@@ -123,6 +123,14 @@ if ($HIP_PLATFORM eq "hcc") {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Force -stdlib=libc++ on UB14.04
|
||||||
|
$HOST_OSNAME= `cat /etc/os-release | grep "^ID\=" | cut -d= -f2 | tr -d '\n'`;
|
||||||
|
$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\"") {
|
||||||
|
$HIPCXXFLAGS .= " -stdlib=libc++";
|
||||||
|
$setStdLib = 1;
|
||||||
|
}
|
||||||
|
|
||||||
$HIPCXXFLAGS .= " -I$HIP_PATH/include/hip/hcc_detail/cuda";
|
$HIPCXXFLAGS .= " -I$HIP_PATH/include/hip/hcc_detail/cuda";
|
||||||
$HIPCXXFLAGS .= " -I$HSA_PATH/include";
|
$HIPCXXFLAGS .= " -I$HSA_PATH/include";
|
||||||
$HIPCXXFLAGS .= " -Wno-deprecated-register";
|
$HIPCXXFLAGS .= " -Wno-deprecated-register";
|
||||||
|
|||||||
Tagairt in Eagrán Nua
Cuir bac ar úsáideoir