Merge pull request #1012 from ncos/x86-64_2_x86_64

Add x86_64 to be alias of x86-64
This commit is contained in:
Dmitry Babokin
2015-04-16 15:19:30 +03:00
3 changed files with 7 additions and 3 deletions

View File

@@ -496,6 +496,10 @@ Target::Target(const char *arch, const char *cpu, const char *isa, bool pic) :
arch = "x86-64";
}
// Define arch alias
if (std::string(arch) == "x86_64")
arch = "x86-64";
bool error = false;
// Make sure the target architecture is a known one; print an error