Allow compilation of C/C++/ObjC/ObjC++ files with module from TH
The main goal is to easily allow the inline-c project (and similar projects such as inline-java) to emit C/C++ files to be compiled and linked with the current module. Moreover, `addCStub` is removed, since it's quite fragile. Most notably, the C stubs end up in the file generated by `CodeOutput.outputForeignStubs`, which is tuned towards generating a file for stubs coming from `capi` and Haskell-to-C exports. Reviewers: simonmar, austin, goldfire, facundominguez, dfeuer, bgamari Reviewed By: dfeuer, bgamari Subscribers: snowleopard, rwbarton, dfeuer, thomie, duncan, mboes Differential Revision: https://phabricator.haskell.org/D3280
Showing
- compiler/deSugar/Desugar.hs 4 additions, 4 deletionscompiler/deSugar/Desugar.hs
- compiler/main/CodeOutput.hs 24 additions, 3 deletionscompiler/main/CodeOutput.hs
- compiler/main/DriverPhases.hs 6 additions, 6 deletionscompiler/main/DriverPhases.hs
- compiler/main/DriverPipeline.hs 65 additions, 50 deletionscompiler/main/DriverPipeline.hs
- compiler/main/HscMain.hs 8 additions, 5 deletionscompiler/main/HscMain.hs
- compiler/main/HscTypes.hs 5 additions, 0 deletionscompiler/main/HscTypes.hs
- compiler/main/PipelineMonad.hs 8 additions, 8 deletionscompiler/main/PipelineMonad.hs
- compiler/main/TidyPgm.hs 2 additions, 0 deletionscompiler/main/TidyPgm.hs
- compiler/typecheck/TcRnMonad.hs 2 additions, 2 deletionscompiler/typecheck/TcRnMonad.hs
- compiler/typecheck/TcRnTypes.hs 3 additions, 3 deletionscompiler/typecheck/TcRnTypes.hs
- compiler/typecheck/TcSplice.hs 4 additions, 11 deletionscompiler/typecheck/TcSplice.hs
- libraries/ghc-boot-th/GHC/ForeignSrcLang/Type.hs 10 additions, 0 deletionslibraries/ghc-boot-th/GHC/ForeignSrcLang/Type.hs
- libraries/ghc-boot-th/ghc-boot-th.cabal.in 1 addition, 0 deletionslibraries/ghc-boot-th/ghc-boot-th.cabal.in
- libraries/ghc-boot/GHC/ForeignSrcLang.hs 12 additions, 0 deletionslibraries/ghc-boot/GHC/ForeignSrcLang.hs
- libraries/ghc-boot/ghc-boot.cabal.in 1 addition, 0 deletionslibraries/ghc-boot/ghc-boot.cabal.in
- libraries/ghci/GHCi/Message.hs 4 additions, 3 deletionslibraries/ghci/GHCi/Message.hs
- libraries/ghci/GHCi/TH.hs 1 addition, 1 deletionlibraries/ghci/GHCi/TH.hs
- libraries/ghci/ghci.cabal.in 1 addition, 0 deletionslibraries/ghci/ghci.cabal.in
- libraries/template-haskell/Language/Haskell/TH/Syntax.hs 16 additions, 13 deletionslibraries/template-haskell/Language/Haskell/TH/Syntax.hs
- testsuite/tests/th/T13366.hs 39 additions, 0 deletionstestsuite/tests/th/T13366.hs
Loading
Please register or sign in to comment