By Allah, I do not know what to do with these latrines, for the Messenger of Allah ﷺ said, "When one of you goes to relieve himself, whether to defecate or urinate, he should not face the qiblah nor turn his back to it."
أخبرنا محمد بن سلمة والحارث بن مسكين قراءة عليه وأنا أسمع واللفظ له عن ابن القاسم قال حدثني مالك عن إسحق بن عبد الله بن أبي طلحة عن رافع بن إسحق أنه سمع
والله ما أدري كيف أصنع بهذه الكراييس وقد قال رسول الله ﷺ إذا ذهب أحدكم إلى الغائط أو البول فلا يستقبل القبلة ولا يستدبرها
Its chain of transmission is sahih. Ahmad also narrated it in 5/414 from the hadith of Malik through the same route, and it appears in Muwatta (the version of Ibn Qasim, page 177, hadith 124, and the version of Yahya 1/193), and it has many corroborating narrations.