Skip to content
This repository has been archived by the owner on Jan 2, 2021. It is now read-only.

Define "__GHCIDE__" on CPP #264

Merged
merged 1 commit into from
Dec 17, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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