Index: tests/pybin/settings.py
===================================================================
--- tests/pybin/settings.py	(revision 575a6e500466575fde0acedd9b84c09b42ac2ee8)
+++ tests/pybin/settings.py	(revision ae628e1a462dc0616aa47dc33f168a660d2d1a3d)
@@ -51,14 +51,14 @@
 			self.target = arch
 			self.cross_compile = True
-			try :
-				self.flags = Architecture.CrossCompileFlags[arch]
-			except KeyError:
-				print("Cross compilation not available for architecture %s" % arch, file=sys.stderr)
-				sys.exit(1)
-
 		else:
 			self.target = canonical_host
 			self.cross_compile = False
-			self.flags = ""
+
+
+		try :
+			self.flags = Architecture.CrossCompileFlags[self.target]
+		except KeyError:
+			print("Cross compilation not available for architecture %s" % self.target, file=sys.stderr)
+			sys.exit(1)
 
 		self.string = self.target
