• ian@well-typed.com's avatar
    Replace mkDerivedConstants.c with DeriveConstants.hs · f49271c0
    ian@well-typed.com authored
    DeriveConstants.hs works in a cross-compilation-friendly way. Rather
    than running a C program that prints out the constants, we just compile
    a C file which has the constants are encoded in symbol sizes. We then
    parse the output of 'nm' to find out what the constants are.
    
    Based on work by Gabor Greif <ggreif@gmail.com>.
    f49271c0
ghc.mk 47.2 KB