build: fix --enable-d8 builds
#53106
+2
−9
Merged
--enable-d8 builds
#53106