Skip to content

Commit

Permalink
Define "__GHCIDE__" on CPP (#264)
Browse files Browse the repository at this point in the history
  • Loading branch information
serras authored and cocreature committed Dec 17, 2019
1 parent 4440a26 commit a698a6f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Development/IDE/GHC/CPP.hs
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ doCpp dflags raw input_fn output_fn = do
++ map SysTools.Option sse_defs
++ map SysTools.Option avx_defs
++ mb_macro_include
-- Define a special macro "__GHCIDE__"
++ [ SysTools.Option "-D__GHCIDE__"]
-- Set the language mode to assembler-with-cpp when preprocessing. This
-- alleviates some of the C99 macro rules relating to whitespace and the hash
-- operator, which we tend to abuse. Clang in particular is not very happy
Expand Down

0 comments on commit a698a6f

Please sign in to comment.