]> git.tdb.fi Git - builder.git/blobdiff - source/architecture.cpp
Rename BuildInfo::add to update_from
[builder.git] / source / architecture.cpp
index fbb246191af4ad0a6a627dd16e5977df01c6dc20..3a9f5549df5f7a2add49547dbf05c22d122117e3 100644 (file)
@@ -1,10 +1,3 @@
-/* $Id$
-
-This file is part of builder
-Copyright © 2007-2010  Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
 #include <limits>
 #ifndef WIN32
 #include <sys/utsname.h>
@@ -161,7 +154,9 @@ bool Architecture::match_name(const string &pattern) const
        for(vector<string>::const_iterator i=parts.begin(); i!=parts.end(); ++i)
        {
                string part = resolve_alias(*i);
-               if(part!=type && part!=cpu && part!=system)
+               if((part=="32" && bits==32) || (part=="64" && bits==64))
+                       ;
+               else if(part!=type && part!=cpu && part!=system)
                        return false;
        }
        return true;