Move `/includes` to `/rts/include`, sort per package better
In order to make the packages in this repo "reinstallable", we need to associate source code with a specific packages. Having a top level `/includes` dir that mixes concerns (which packages' includes?) gets in the way of this. To start, I have moved everything to `rts/`, which is mostly correct. There are a few things however that really don't belong in the rts (like the generated constants haskell type, `CodeGen.Platform.h`). Those needed to be manually adjusted. Things of note: - No symlinking for sake of windows, so we hard-link at configure time. - `CodeGen.Platform.h` no longer as `.hs` extension (in addition to being moved to `compiler/`) so as not to confuse anyone, since it is next to Haskell files. - Blanket `-Iincludes` is gone in both build systems, include paths now more strictly respect per-package dependencies. - `deriveConstants` has been taught to not require a `--target-os` flag when generating the platform-agnostic Haskell type. Make takes advantage of this, but Hadrian has yet to.
Showing
- .gitignore 8 additions, 3 deletions.gitignore
- CODEOWNERS 4 additions, 4 deletionsCODEOWNERS
- compiler/CodeGen.Platform.h 1 addition, 1 deletioncompiler/CodeGen.Platform.h
- compiler/GHC/ByteCode/Asm.hs 1 addition, 1 deletioncompiler/GHC/ByteCode/Asm.hs
- compiler/GHC/Cmm/CLabel.hs 3 additions, 3 deletionscompiler/GHC/Cmm/CLabel.hs
- compiler/GHC/Cmm/Info.hs 3 additions, 3 deletionscompiler/GHC/Cmm/Info.hs
- compiler/GHC/CmmToAsm/Reg/Graph/TrivColorable.hs 1 addition, 1 deletioncompiler/GHC/CmmToAsm/Reg/Graph/TrivColorable.hs
- compiler/GHC/CmmToAsm/SPARC/Regs.hs 1 addition, 1 deletioncompiler/GHC/CmmToAsm/SPARC/Regs.hs
- compiler/GHC/CmmToAsm/X86/Ppr.hs 1 addition, 1 deletioncompiler/GHC/CmmToAsm/X86/Ppr.hs
- compiler/GHC/CmmToC.hs 1 addition, 1 deletioncompiler/GHC/CmmToC.hs
- compiler/GHC/Platform.hs 1 addition, 1 deletioncompiler/GHC/Platform.hs
- compiler/GHC/Platform/AArch64.hs 1 addition, 1 deletioncompiler/GHC/Platform/AArch64.hs
- compiler/GHC/Platform/ARM.hs 1 addition, 1 deletioncompiler/GHC/Platform/ARM.hs
- compiler/GHC/Platform/NoRegs.hs 1 addition, 1 deletioncompiler/GHC/Platform/NoRegs.hs
- compiler/GHC/Platform/PPC.hs 1 addition, 1 deletioncompiler/GHC/Platform/PPC.hs
- compiler/GHC/Platform/RISCV64.hs 1 addition, 1 deletioncompiler/GHC/Platform/RISCV64.hs
- compiler/GHC/Platform/S390X.hs 1 addition, 1 deletioncompiler/GHC/Platform/S390X.hs
- compiler/GHC/Platform/SPARC.hs 1 addition, 1 deletioncompiler/GHC/Platform/SPARC.hs
- compiler/GHC/Platform/X86.hs 1 addition, 1 deletioncompiler/GHC/Platform/X86.hs
- compiler/GHC/Platform/X86_64.hs 1 addition, 1 deletioncompiler/GHC/Platform/X86_64.hs
Loading
Please register or sign in to comment