build with AMD and globals simultaneously