Fix some tests for linux gnux32

This commit is contained in:
Marco A L Barbosa 2017-10-19 15:49:59 -02:00
parent dbcd1bec61
commit e57ee3d0bf
7 changed files with 16 additions and 16 deletions

View file

@ -73,7 +73,7 @@ pub fn get_env(triple: &str) -> Option<&str> {
}
pub fn get_pointer_width(triple: &str) -> &'static str {
if triple.contains("64") || triple.starts_with("s390x") {
if (triple.contains("64") && !triple.ends_with("gnux32")) || triple.starts_with("s390x") {
"64bit"
} else {
"32bit"