@@ -114,6 +114,8 @@ doCpp dflags raw input_fn output_fn = do
114114 ++ map SysTools.Option sse_defs
115115 ++ map SysTools.Option avx_defs
116116 ++ mb_macro_include
117+ -- Define a special macro "__GHCIDE__"
118+ ++ [ SysTools.Option "-D__GHCIDE__"]
117119 -- Set the language mode to assembler-with-cpp when preprocessing. This
118120 -- alleviates some of the C99 macro rules relating to whitespace and the hash
119121 -- operator, which we tend to abuse. Clang in particular is not very happy