Fix genapply for cross-compilation by nuking fragile CPP logic
This commit fixes incorrectly built genapply when cross compiling (#24347) by nuking all fragile CPP logic in it from the orbit. All target-specific info are now read from DerivedConstants.h at runtime, see added note for details. Also removes a legacy Makefile and adds haskell language server support for genapply. (cherry picked from commit 40221376)
Showing
- hadrian/hadrian.cabal 1 addition, 0 deletionshadrian/hadrian.cabal
- hadrian/src/Rules/Generate.hs 6 additions, 10 deletionshadrian/src/Rules/Generate.hs
- hadrian/src/Settings/Builders/GenApply.hs 11 additions, 0 deletionshadrian/src/Settings/Builders/GenApply.hs
- hadrian/src/Settings/Builders/Ghc.hs 1 addition, 12 deletionshadrian/src/Settings/Builders/Ghc.hs
- hadrian/src/Settings/Default.hs 2 additions, 0 deletionshadrian/src/Settings/Default.hs
- hadrian/src/Settings/Packages.hs 0 additions, 4 deletionshadrian/src/Settings/Packages.hs
- utils/deriveConstants/Main.hs 8 additions, 1 deletionutils/deriveConstants/Main.hs
- utils/genapply/Main.hs 186 additions, 140 deletionsutils/genapply/Main.hs
- utils/genapply/Makefile 0 additions, 15 deletionsutils/genapply/Makefile
- utils/genapply/genapply.cabal 0 additions, 8 deletionsutils/genapply/genapply.cabal
- utils/genapply/hie.yaml 2 additions, 0 deletionsutils/genapply/hie.yaml
Loading
Please register or sign in to comment