Skip to content

Commit a698a6f

Browse files
serrascocreature
authored andcommitted
Define "__GHCIDE__" on CPP (#264)
1 parent 4440a26 commit a698a6f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Development/IDE/GHC/CPP.hs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

0 commit comments

Comments
 (0)