Fix the build on OS X: only understands .space, not .skip
[ghc-hetmet.git] / compiler / nativeGen / PprMach.hs
index 55e3930..88a8f3f 100644 (file)
@@ -693,7 +693,13 @@ pprData :: CmmStatic -> Doc
 pprData (CmmAlign bytes)         = pprAlign bytes
 pprData (CmmDataLabel lbl)       = pprLabel lbl
 pprData (CmmString str)          = pprASCII str
-pprData (CmmUninitialised bytes) = ptext (sLit ".skip ") <> int bytes
+pprData (CmmUninitialised bytes) = ptext (sLit s) <> int bytes
+    where s =
+#if defined(solaris2_TARGET_OS)
+              ".skip "
+#else
+              ".space "
+#endif
 pprData (CmmStaticLit lit)       = pprDataItem lit
 
 pprGloblDecl :: CLabel -> Doc