Remove more ifdeffery
[ghc-hetmet.git] / compiler / utils / Util.lhs
index 1ecf82c..82e0393 100644 (file)
@@ -6,7 +6,7 @@
 
 \begin{code}
 module Util (
-        debugIsOn, ghciTablesNextToCode,
+        debugIsOn, ghciTablesNextToCode, picIsOn,
         isWindowsHost, isWindowsTarget, isDarwinTarget,
 
         -- general list processing
@@ -126,6 +126,13 @@ ghciTablesNextToCode = True
 ghciTablesNextToCode = False
 #endif
 
+picIsOn :: Bool
+#ifdef __PIC__
+picIsOn = True
+#else
+picIsOn = False
+#endif
+
 isWindowsHost :: Bool
 #ifdef mingw32_HOST_OS
 isWindowsHost = True