Replaced ifdef with if defined and else with elif and logic. Added error for no architecture defined