I lived in Saudi Arabia for 5 years, working for the US Army Corps of Engineers.
By 9am in the middle of the Summer it was 100 degrees.
We used to play tennis in the Summer starting at 7am and finish by 9.
A key to handling hot places like Morocco, Egypt and Arabia is to be sure to hydrate so. you avoid dehydration. Also, wear a large hat that covers you face as much as possible. Further, it is best to wear clothing that covers your skin, not shorts or t-shirts.
Wear loose fitting light clothing.
Also, get an early start on touring and take a long mid-day lunch (the Spanish do this).
I am from Georgia and lived in Arizona and Texas for a while, and am used to going to hot places. It is best to plan during cooler months, but if I had to go there in the Summer, I could do it.
Morocco wasn't that bad when we visited in early May, but it was hot.